kintone REST API sample

Dependencies:   C12832 HTTPClient LM75B SNICInterface mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
cybozudld
Date:
Tue Sep 05 04:45:21 2017 +0000
Parent:
3:57ffcb4c9f5d
Commit message:
- Append INTERVAL define; - Delete Line54: header_template[0] = header_template_basic[0];

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 57ffcb4c9f5d -r 2731edb619b9 main.cpp
--- a/main.cpp	Thu Aug 31 00:46:34 2017 +0000
+++ b/main.cpp	Tue Sep 05 04:45:21 2017 +0000
@@ -4,6 +4,7 @@
 #define BASIC64              "xxx"
 #define DEMO_AP_SSID         "xxx"
 #define DEMO_AP_SECUTIRY_KEY "xxx"
+#define INTERVAL             60
 
 #include "mbed.h"
 #include "LM75B.h"
@@ -51,7 +52,6 @@
     // Basic Authentications
     if (BASIC64 != "") {
         sprintf(header_data, header_template_basic, BASIC64, API_TOKEN);
-        header_template[0] = header_template_basic[0];
     } else {
         sprintf(header_data, header_template, API_TOKEN);
     }
@@ -117,7 +117,7 @@
 
     while (true) {
         post();
-        wait(60);        
+        wait(INTERVAL);        
     }
 
     wifi.disconnect();