Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Revision:
98:e369fc75c000
Parent:
96:ea056f6be2e8
Child:
105:c61f0d62b625
--- a/util/SmartRestSocket.h	Mon Apr 27 13:30:21 2015 +0000
+++ b/util/SmartRestSocket.h	Thu May 07 09:57:55 2015 +0000
@@ -3,15 +3,18 @@
 #include "TCPSocketConnection.h"
 #include "rtos.h"
 
-class SmartRestSocket : public TCPSocketConnection
+class SmartRestSocket : private TCPSocketConnection
 {
 public:
         SmartRestSocket(): TCPSocketConnection() {}
         virtual ~SmartRestSocket() {}
-        int connect();
         int sendOnly(char *buf, int size);
         int sendAndReceive(char *buf, int size, int maxSize);
+        void set_blocking(bool blocking, unsigned int timeout = 3000) { // timeout in milliseconds
+                Socket::set_blocking(blocking, timeout);
+        }
 private:
+        int connect();
         static char cachedIP[16];
         Mutex ipLock;
 };