Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
214:52ef35bc44ec
Parent:
197:594afd088f32
Child:
224:9ea8925c61e0
--- a/src/CloudDataHandler/CloudFileReceiver.cpp	Mon Oct 10 14:38:38 2016 +0000
+++ b/src/CloudDataHandler/CloudFileReceiver.cpp	Tue Oct 11 15:31:49 2016 +0000
@@ -351,14 +351,16 @@
 
             memset( CloudFileReceiverWriteBuf, '\0', MAX_FILE_SIZE );
             snprintf(CloudFileReceiverWriteBuf, sizeof(CloudFileReceiverWriteBuf),
-                     "{ "
-                     "\"id\":\"%s\", "
-                     "\"constant\":\"%f\", "
-                     "\"opl\":\"%s\", "
-                     "\"opr\":\"%s\", "
-                     "\"op\":\"%s\" } ",
+                     "{"
+                     "\"id\":\"%s\","
+                     "\"tag\":\"%s\","
+                     "\"c\":\"%f\","
+                     "\"opl\":\"%s\","
+                     "\"opr\":\"%s\","
+                     "\"op\":\"%s\"}",
                      from_json["pay"]["vcommand"]["id"].get<std::string>().c_str(),
-                     atof(from_json["pay"]["vcommand"]["constant"].get<std::string>().c_str()),
+                     from_json["pay"]["vcommand"]["tag"].get<std::string>().c_str(),
+                     atof(from_json["pay"]["vcommand"]["c"].get<std::string>().c_str()),
                      from_json["pay"]["vcommand"]["opl"].get<std::string>().c_str(),
                      from_json["pay"]["vcommand"]["opr"].get<std::string>().c_str(),
                      from_json["pay"]["vcommand"]["op"].get<std::string>().c_str()