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:
130:dc9e37d4bc05
Parent:
122:68217ccb8cd1
--- a/util/SmartRestSocket.h	Wed Jun 03 09:51:47 2015 +0000
+++ b/util/SmartRestSocket.h	Mon Jun 29 11:14:27 2015 +0000
@@ -2,13 +2,14 @@
 #define SMARTRESTSOCKET_H
 #include "TCPSocketConnection.h"
 
-class SmartRestSocket : private TCPSocketConnection
+class SmartRestSocket : public TCPSocketConnection
 {
 public:
         SmartRestSocket(): TCPSocketConnection() {
                 memset(cachedIP, 0, sizeof(cachedIP));
         }
         virtual ~SmartRestSocket() {}
+        int connect();
         int sendOnly(char *buf, int size);
         int sendAndReceive(char *buf, int size, int maxSize);
         /* Set the timeout for the socket.
@@ -21,7 +22,6 @@
                         Socket::set_blocking(false, timeout);
         }
 private:
-        int connect();
         char cachedIP[16];
 };