Thinger.io client for boards compatible with the ARM mbed Ethernet Interface.
Dependencies: EthernetInterface ThingerClient mbed-rtos
Fork of ThingerEthernetClient by
TCPSocket.h
- Committer:
- alvarolb
- Date:
- 2015-12-25
- Revision:
- 0:ad55e6505bbb
- Child:
- 3:a38b8921ff2c
File content as of revision 0:ad55e6505bbb:
#include "TCPSocketConnection.h" class TCPSocket : public TCPSocketConnection { public: TCPSocket() { set_blocking(false, _timeout); } virtual ~TCPSocket() { } int available() { TimeInterval interval(10); // millisecods return wait_readable(interval)==0 ? 1 : 0; } };