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:
107:fc5f25f0e0d5
Parent:
106:c61f0d62b625
Child:
116:4eb3c7e945cf
--- a/util/SmartRestSocket.cpp	Mon May 11 18:10:44 2015 +0000
+++ b/util/SmartRestSocket.cpp	Wed May 13 12:12:55 2015 +0000
@@ -10,7 +10,7 @@
         int n = -1;
         ipLock.lock();
         for (size_t i = 0; i < 3; ++i) {
-                if (cachedIP[0] == '\0') {
+                if (cachedIP[0] == 0) {
                         MDMParser::IP ip = pMdm->gethostbyname(srHost);
                         if (ip == NOIP)
                                 continue;
@@ -25,7 +25,7 @@
                             Socket::set_blocking(false, timeout);
                         break;
                 } else {
-                        cachedIP[0] = '\0';
+                        cachedIP[0] = 0;
                 }
         }
         ipLock.unlock();