Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: MbedAgent.cpp
- Revision:
- 125:e1fcf720c63a
- Parent:
- 124:979ab0d075de
- Child:
- 129:dc9e37d4bc05
- Child:
- 130:ca312ec4bd0f
diff -r 979ab0d075de -r e1fcf720c63a MbedAgent.cpp --- a/MbedAgent.cpp Mon Jun 01 11:24:17 2015 +0000 +++ b/MbedAgent.cpp Mon Jun 01 12:56:41 2015 +0000 @@ -103,7 +103,7 @@ while (true) { int l = 0; for (size_t i = 0; i < N; ++i) { - if (reporters[i] == &ConfigSync::inst()) { +// if (reporters[i] == &ConfigSync::inst()) { int l2 = reporters[i]->read(buf2+l, sizeof(buf2)-l, status, DISPLAY_LEN); if (l2) { // Refresh LCD display needed LCDDisplay::inst().setThirdLine(status); @@ -114,12 +114,13 @@ } lcdThirdLineBlank = !l2; l += l2; - } +// } } if (l) { l = snprintf(buf, sizeof(buf), fmtSmartRest, "/s", l, buf2); sock.setBlocking(3000); l = sock.sendOnly(buf, l); + aInfo("[SEND] agent: %d\n", l); if (l < 0) aWarning("%s\n", status); }