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/CloudDataHandler/CloudDataHandler.cpp
- Revision:
- 123:ce602c91a9c3
- Parent:
- 116:7337ed514891
- Child:
- 149:950c90425f7c
--- a/src/CloudDataHandler/CloudDataHandler.cpp Thu Sep 22 21:30:48 2016 +0000 +++ b/src/CloudDataHandler/CloudDataHandler.cpp Fri Sep 23 15:25:06 2016 +0000 @@ -11,7 +11,7 @@ void CloudDataHandler(void const *args) { int32_t ret; - bool connected; + bool joined; bool sent; printf("\r%s has started...\n", __func__); @@ -24,13 +24,13 @@ logInfo("network not joined, joining network"); if ((ret = GLOBAL_mdot->joinNetwork()) != mDot::MDOT_OK) { logError("failed to join network %d:%s", ret, mDot::getReturnCodeString(ret).c_str()); - connected = false; + joined = false; } } else { - connected = true; + joined = true; } - sent = LogHandler( connected ); + sent = LogHandler( joined ); if( sent == true ) { // sent a packet, try to receive back. logInfo("Sent to gateway: %s", tmp_buffer.c_str()); @@ -44,6 +44,6 @@ } } } - Thread::wait(5000); + Thread::wait(10000); } } \ No newline at end of file