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
Diff: util/SmartRestSocket.cpp
- Revision:
- 116:4eb3c7e945cf
- Parent:
- 107:fc5f25f0e0d5
- Child:
- 122:68217ccb8cd1
--- a/util/SmartRestSocket.cpp Fri May 15 15:09:19 2015 +0000 +++ b/util/SmartRestSocket.cpp Mon May 18 09:29:12 2015 +0000 @@ -2,13 +2,11 @@ #include "SmartRestSocket.h" #include "SmartRestConf.h" -char SmartRestSocket::cachedIP[16] = {0}; 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 = pMdm->gethostbyname(srHost); @@ -28,7 +26,6 @@ cachedIP[0] = 0; } } - ipLock.unlock(); return n; }