![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: MbedAgent.cpp
- Revision:
- 108:2ec12f10ebf4
- Parent:
- 107:f1ee3e1eb126
- Child:
- 112:3872569be2af
--- a/MbedAgent.cpp Wed May 13 13:03:20 2015 +0000 +++ b/MbedAgent.cpp Wed May 13 13:54:17 2015 +0000 @@ -1,6 +1,6 @@ #include "MbedAgent.h" +#include "watchdog.h" #include "logging.h" -#include "watchdog.h" MbedAgent::MbedAgent(DeviceInfo& deviceInfo): _client(), tpl(), _bootstrap(_client, deviceInfo), @@ -98,15 +98,15 @@ { ReportThread reportThread(pool); _operationSupport.executePendingOperations(); -// PollThread pollThread(pool); -// pollThread.setChannel(deviceID); + PollThread pollThread(pool); + pollThread.setChannel(deviceID); Watchdog wdt; wdt.kick(60.0); // set a 60.0 seconds watchdog while (true) { int l = 0; for (size_t i = 0; i < N; ++i) { - if (reporters[i] == NULL) { +// if (reporters[i] == NULL) { int l2 = reporters[i]->read(buf2+l, sizeof(buf2)-l, status, DISPLAY_LEN); if (l2) { // Refresh LCD display needed LCDDisplay::inst().setThirdLine(status); @@ -117,7 +117,7 @@ } lcdThirdLineBlank = !l2; l += l2; - } +// } } if (l) { l = snprintf(buf, sizeof(buf), fmtSmartRest, "/s", l, buf2);