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

util/SmartRestSocket.h

Committer:
xinlei
Date:
2015-04-27
Revision:
97:ea056f6be2e8
Parent:
94:61d44636f020
Child:
99:e369fc75c000

File content as of revision 97:ea056f6be2e8:

#ifndef SMARTRESTSOCKET_H
#define SMARTRESTSOCKET_H
#include "TCPSocketConnection.h"
#include "rtos.h"

class SmartRestSocket : public TCPSocketConnection
{
public:
        SmartRestSocket(): TCPSocketConnection() {}
        virtual ~SmartRestSocket() {}
        int connect();
        int sendOnly(char *buf, int size);
        int sendAndReceive(char *buf, int size, int maxSize);
private:
        static char cachedIP[16];
        Mutex ipLock;
};

#endif /* SMARTRESTSOCKET_H */