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/ModbusMaster/ModbusMaster.cpp
- 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");
