Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
147:105bcf234f81
Parent:
145:c1dfbb5eed0e
Child:
149:950c90425f7c
--- a/src/CloudDataHandler/CloudFileReceiver.cpp	Tue Sep 27 22:33:22 2016 +0000
+++ b/src/CloudDataHandler/CloudFileReceiver.cpp	Wed Sep 28 12:34:34 2016 +0000
@@ -267,19 +267,6 @@
                       from_json["pay"]["destroy"]["id"].get<std::string>().c_str() );
             logInfo("SETPOINT CONTROL FILENAME=%s", filename);
 
-            memset( CloudFileReceiverWriteBuf, '\0', 1024 );
-            snprintf(CloudFileReceiverWriteBuf, sizeof(CloudFileReceiverWriteBuf),
-                     "{ "
-                     "\"id\":     \"%s\", ",
-                     from_json["pay"]["destroy"]["id"].get<std::string>().c_str()
-                    );
-
-            logInfo("saving string%s", CloudFileReceiverWriteBuf);
-            bool status = GLOBAL_mdot->saveUserFile(filename, (void *)CloudFileReceiverWriteBuf, 1024);
-            if( status != true ) {
-                logError("(%d)save file failed, status=%d", __LINE__, status);
-            }
-
             // send a message to the configuration handler to create the control
             Message_t *msg  = MailBox.alloc();
             memset(msg, 0, sizeof(Message_t));
@@ -298,19 +285,6 @@
                       from_json["pay"]["destroy"]["id"].get<std::string>().c_str() );
             logInfo("MANUAL CONTROL FILENAME=%s", filename);
 
-            memset( CloudFileReceiverWriteBuf, '\0', 1024 );
-            snprintf(CloudFileReceiverWriteBuf, sizeof(CloudFileReceiverWriteBuf),
-                     "{ "
-                     "\"id\":     \"%s\", ",
-                     from_json["pay"]["destroy"]["id"].get<std::string>().c_str()
-                    );
-
-            logInfo("saving string%s", CloudFileReceiverWriteBuf);
-            bool status = GLOBAL_mdot->saveUserFile(filename, (void *)CloudFileReceiverWriteBuf, 1024);
-            if( status != true ) {
-                logError("(%d)save file failed, status=%d", __LINE__, status);
-            }
-
             // send a message to the configuration handler to create the control
             Message_t *msg  = MailBox.alloc();
             memset(msg, 0, sizeof(Message_t));
@@ -329,19 +303,6 @@
                       from_json["pay"]["destroy"]["id"].get<std::string>().c_str() );
             logInfo("TIMER CONTROL FILENAME=%s", filename);
 
-            memset( CloudFileReceiverWriteBuf, '\0', 1024 );
-            snprintf(CloudFileReceiverWriteBuf, sizeof(CloudFileReceiverWriteBuf),
-                     "{ "
-                     "\"id\":     \"%s\", ",
-                     from_json["pay"]["destroy"]["id"].get<std::string>().c_str()
-                    );
-
-            logInfo("saving string%s", CloudFileReceiverWriteBuf);
-            bool status = GLOBAL_mdot->saveUserFile(filename, (void *)CloudFileReceiverWriteBuf, 1024);
-            if( status != true ) {
-                logError("(%d)save file failed, status=%d", __LINE__, status);
-            }
-
             // send a message to the configuration handler to create the control
             Message_t *msg  = MailBox.alloc();
             memset(msg, 0, sizeof(Message_t));