Official reference client implementation for Cumulocity SmartREST on u-blox C027.

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Vincent Wochnik

Revision:
122:68217ccb8cd1
Parent:
109:2ec12f10ebf4
Child:
126:e1fcf720c63a
--- a/operation/ReportThread.cpp	Wed May 20 13:17:19 2015 +0000
+++ b/operation/ReportThread.cpp	Wed May 20 14:30:26 2015 +0000
@@ -5,7 +5,6 @@
 
 void ReportThread::threadFunc()
 {
-    sock.setBlocking(3000);
     while (true) {
         dict.clear();
         osEvent e = ipool.get();
@@ -31,6 +30,7 @@
             }
             l = snprintf(buf, sizeof(buf), fmtSmartRest, uri, l, buf2);
             for (unsigned i = 0; i < 3; ++i) {
+                sock.setBlocking(3000);
                 int l2 = sock.sendOnly(buf, l);
                 if (l2 < 0) {
                     aError("Report: op state\n");