Exosite Collaberation ALS int .

Dependencies:   MbedJSONValue mbed mtsas

Fork of UUU_MultiTech_Dragonfly_Sprint_SF by Paul Jaeger

Files at this revision

API Documentation at this revision

Comitter:
BlueShadow
Date:
Tue Apr 19 14:15:07 2016 +0000
Parent:
9:6475e1b83491
Child:
11:d2ac3fa6f2d3
Commit message:
integer working;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Apr 15 22:29:23 2016 +0000
+++ b/main.cpp	Tue Apr 19 14:15:07 2016 +0000
@@ -404,8 +404,11 @@
                 int sensor_data = RPR0521_ALS[0];
                 logDebug("posting sensor data");
                 logDebug("%d",sensor_data);
+                
+                std::string sensor_data_str = patch::to_string(sensor_data);
+                logDebug("Sensor data string: %s",sensor_data_str.c_str());
 
-                http_tx.put("ALS", patch::to_string(sensor_data).c_str());
+                http_tx.put("ALS", sensor_data_str.c_str());
 
                 // Make HTTP POST request
                 result = http.post(EXOSITE_URL, http_tx, &http_rx);