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/CommandParser/cmd.cpp
- Revision:
- 188:d35a74bf4e92
- Parent:
- 186:16912aa18c2a
- Child:
- 190:af7ab603c9fe
--- a/src/CommandParser/cmd.cpp Wed Oct 05 20:48:59 2016 +0000
+++ b/src/CommandParser/cmd.cpp Wed Oct 05 21:32:02 2016 +0000
@@ -1232,6 +1232,38 @@
ModbusMasterMailBox.put(mail);
Thread::wait(1000);
+
+ // INPUT: Tag
+ snprintf(buf, sizeof(buf),
+ "{ "
+ "\"id\": \"i_tag01\","
+ "\"name\": \"Tag\", "
+ "\"units\": \"PPM\", "
+ "\"min\": \"0\", "
+ "\"max\": \"300\", "
+ "\"node\": \"1\", "
+ "\"reg\": \"11\", "
+ "\"rtype\": \"1\", "
+ "\"type\": \"0\", "
+ "\"size\": \"2\", "
+ "\"order\": \"2\", "
+ "\"fmt\": \"%%.2f\", "
+ "\"vcmd\": \"\", "
+ "\"rfreq\": \"5\" }");
+ rc = GLOBAL_mdot->saveUserFile("input_i_tag01.json", (void *)buf, MAX_FILE_SIZE);
+ if ( rc != true ) {
+ printf("\rFailed to save input_i_tag01.json\n");
+ return;
+ } else {
+ printf("\r...generated input_i_tag01.json\n");
+ }
+
+ mail = ModbusMasterMailBox.alloc();
+ mail->action = ACTION_READ_FILE;
+ strncpy( mail->controlFile, "input_i_tag01.json", (sizeof(mail->controlFile)-1));
+ ModbusMasterMailBox.put(mail);
+
+ Thread::wait(1000);
// INPUT: Conductivity
