Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
284:cc72206ea8e0
Parent:
149:950c90425f7c
--- a/src/CloudDataHandler/CloudDataHandler.cpp	Fri Oct 28 16:28:44 2016 +0000
+++ b/src/CloudDataHandler/CloudDataHandler.cpp	Fri Oct 28 18:44:12 2016 +0000
@@ -17,33 +17,7 @@
     printf("\r%s has started...\n", __func__);
 
     while ( true ) {
-
-        std::string tmp_buffer;
-
-        if (!GLOBAL_mdot->getNetworkJoinStatus()) {
-            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());
-                joined = false;
-            }
-        } else {
-            joined = true;
-        }
-
-        sent = LogHandler( joined );
-        if( sent == true ) {
-            // sent a packet, try to receive back.
-            logInfo("Sent to gateway: %s", tmp_buffer.c_str());
-            std::vector<uint8_t> rcvData(256);
-            rcvData.clear();
-            if ((ret = GLOBAL_mdot->recv(rcvData)) == mDot::MDOT_OK) {
-                if (!rcvData.empty()) {
-                    std::string rcv_string(rcvData.begin(), rcvData.end());
-                    logInfo("Received Data: %s", rcv_string.c_str());
-                    CloudFileReceiver( &rcv_string, GLOBAL_mdot );
-                }
-            }
-        }
+        sent = LogHandler( false );
         Thread::wait(1000);
     }
-}
\ No newline at end of file
+}