Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
Diff: src/CloudDataHandler/CloudFileReceiver.cpp
- 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()
