Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
7:c0c03193612d
Parent:
4:c35db3946fd8
Child:
8:abe51ae5ef8b
--- a/src/ModbusMaster/ModbusMaster.cpp	Tue Sep 06 19:35:50 2016 +0000
+++ b/src/ModbusMaster/ModbusMaster.cpp	Tue Sep 06 20:08:13 2016 +0000
@@ -16,10 +16,21 @@
  * @param                (IN) args (user-defined arguments)
  * @return               none
  *****************************************************************************/
+
 void ModbusMaster(void const *args)
 {
     printf("\r%s has started...\n", __func__);
 
+    char scratch_buf[1024];
+    bool status = GLOBAL_mdot->readUserFile("scratch.json", (void *)scratch_buf, 1024);
+    if( status != true ) {
+        printf("\r(%d)read file failed, status=%d\n", __LINE__, status);
+    }
+    else
+    {
+        printf("\r(%d)Read File SUCCESS: %s\n", __LINE__, scratch_buf );
+    }
+
     while ( true ) {
         // Send request to Fluorometer
         printf("\rsending request to FLU\n");