Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
229:0d6755d765fd
Parent:
221:2a5e9902003c
Child:
230:11765008ff3a
--- a/src/CommandParser/cmd.cpp	Tue Oct 18 12:25:36 2016 +0000
+++ b/src/CommandParser/cmd.cpp	Tue Oct 18 14:18:30 2016 +0000
@@ -638,18 +638,18 @@
 void cmd_createComposite(int argc, char **argv)
 {
     if ( argc != 2 ) {
-        printf("\rusage:    create-comp control_cm_1.json\n");
+        printf("\rusage:    create-comp control_comp_1.json\n");
         return;
     }
 
     char data_buf[MAX_FILE_SIZE];
     snprintf(data_buf, sizeof(data_buf),
              "{ "
-             "\"id\":           \"FLOW_OVERRIDE\",  "
-             "\"tag\":          \"i_flowswitch\",  "
-             "\"ca\":           \"EQUAL_TO_1\",   "
-             "\"priority\":     \"400\", "
-             "\"entries\":      \"2\", " 
+             "\"id\":  \"FLOW_OVERRIDE\",  "
+             "\"tag\": \"i_flowsw01\",  "
+             "\"ca\":  \"EQUAL_TO_1\",   "
+             "\"priority\": \"400\", "
+             "\"entries\":  \"2\", " 
              "\"outputs\": [ "
              "{"
                  "\"tag\": \"o_rly01\", "
@@ -1492,13 +1492,13 @@
              "\"fmt\":       \"%%.2f\",   "
              "\"vcmd\":      \"\",       "
              "\"rfreq\":     \"5\" }");
-    bool rc = GLOBAL_mdot->saveUserFile("input_i_tra01.json", (void *)buf, MAX_FILE_SIZE);
+    bool rc = GLOBAL_mdot->saveUserFile("c", (void *)buf, MAX_FILE_SIZE);
     if ( rc != true ) {
         printf("\rFailed to save input_i_tra01.json\n");
         return;
     } else {
         printf("\r...generated input_i_tra01.json\n");
-    }
+    }    
 
     Message_t *mail = ModbusMasterMailBox.alloc();
     mail->action = ACTION_READ_FILE;