mbed.org implementation of the abstract SmartREST library for the Cumulocity Platform SmartREST protocol.
Dependents: MbedSmartRestMain MbedSmartRestMain
Diff: MbedDataSource.h
- Revision:
- 11:e1bee9a77652
- Parent:
- 0:099f76422485
--- a/MbedDataSource.h Thu Oct 23 14:41:58 2014 +0200 +++ b/MbedDataSource.h Sat Nov 15 11:21:01 2014 +0100 @@ -47,14 +47,15 @@ uint8_t status(); protected: + void setTimeout(size_t); bool receive(); void reset(); private: TCPSocketConnection& _sock; char _buf[MBED_SOURCE_BUFFER_SIZE]; - size_t _len, _offset; - bool _timeout; + size_t _len, _offset, _timeout; + bool _isTimedOut; friend class MbedClient; };