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:
97:ea056f6be2e8
Parent:
94:61d44636f020
Child:
99:e369fc75c000
--- a/util/SmartRestSocket.cpp	Mon Apr 27 10:50:21 2015 +0000
+++ b/util/SmartRestSocket.cpp	Mon Apr 27 13:02:50 2015 +0000
@@ -7,11 +7,12 @@
 
 int SmartRestSocket::connect()
 {
+        extern MDMSerial *pMdm;
         int n = -1;
         ipLock.lock();
         for (size_t i = 0; i < 3; ++i) {
                 if (cachedIP[0] == '\0') {
-                        MDMParser::IP ip = mdm.gethostbyname(getHost());
+                        MDMParser::IP ip = pMdm->gethostbyname(getHost());
                         if (ip == NOIP)
                                 continue;
                         const unsigned char *c = (const unsigned char*)&ip;