Initial Program for MultiTech Dragonfly to communicate to PTC ThingWorx. Sensors are from Rohm version1
Dependencies: MbedJSONValue mbed mtsas
Fork of UUU_MultiTech_Dragonfly_Sprint by
Revision 12:674362d942d4, committed 2016-04-29
- Comitter:
- BlueShadow
- Date:
- Fri Apr 29 16:20:04 2016 +0000
- Parent:
- 11:d2ac3fa6f2d3
- Commit message:
- class version for a single sensor with no data pointers.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Apr 19 14:21:51 2016 +0000 +++ b/main.cpp Fri Apr 29 16:20:04 2016 +0000 @@ -55,7 +55,7 @@ #include <string> #include <sstream> -#define EXOSITE_CIK "1e05228e50762cc29cf414bc518259a3ab5dc247" +#define EXOSITE_CIK " YOUR_NUMBER_HERE " char EXOSITE_HEADER[] = "X-Exosite-CIK: " EXOSITE_CIK "\r\nAccept: application/x-www-form-urlencoded; charset=utf-8\r\n"; const char EXOSITE_URL[] = "https://m2.exosite.com:443/onep:v1/stack/alias"; @@ -409,7 +409,7 @@ logDebug("Sensor data string: %s",sensor_data_str.c_str()); http_tx.clear(); - http_tx.put("ALS", sensor_data_str.c_str()); + http_tx.put(" YOUR_VARIABLE_HERE ", sensor_data_str.c_str()); // Make HTTP POST request result = http.post(EXOSITE_URL, http_tx, &http_rx);