kintone REST API sample
Dependencies: C12832 HTTPClient LM75B SNICInterface mbed-rtos mbed
Diff: main.cpp
- Revision:
- 4:2731edb619b9
- Parent:
- 3:57ffcb4c9f5d
--- 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();