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:
- 116:7337ed514891
- Parent:
- 107:e900bd138bf3
- Child:
- 123:ce602c91a9c3
diff -r e900bd138bf3 -r 7337ed514891 src/ModbusMaster/ModbusMaster.cpp
--- a/src/ModbusMaster/ModbusMaster.cpp Thu Sep 22 16:10:01 2016 +0000
+++ b/src/ModbusMaster/ModbusMaster.cpp Thu Sep 22 21:09:49 2016 +0000
@@ -6,13 +6,11 @@
*****************************************************************************/
#include "global.h"
#include <stdio.h>
-#include <sstream>
-#include <iostream>
#include "MTSLog.h"
#include "BLEDataHandler.h"
#include "ModbusMaster.h"
#include "MbedJSONValue.h"
-#include "CloudFileSender.h"
+#include "LoggerApi.h"
DigitalOut dout1(PC_1);
DigitalOut dout2(PA_1);
@@ -120,11 +118,6 @@
if( status == true ) {
ModbusRegisterMap[iter->first].float_value = float_value;
logInfo("Modbus Tag:%s value=%2.2f", iter->first.c_str(), float_value );
-// std::ostringstream log_event;
-// log_event << "tag:"<< iter->first.c_str() << " value:" << float_value;
-// printf("%s:%d event=%s\r\n",__func__, __LINE__, log_event.str().c_str());
-// std::string queue_event( log_event.str().c_str() );
-// CloudFileQueueEvent( queue_event );
EventReasonStruct_t eventReason;
eventReason.eventReason = EVENT_REASON_AUTO;
eventReason.inputValue = float_value;
