Own fork of MbedSmartRest
Dependents: MbedSmartRestMain MbedSmartRestMain
Fork of MbedSmartRest by
Diff: MbedClient.h
- Revision:
- 11:e1bee9a77652
- Parent:
- 10:97077cfa13fc
- Child:
- 16:81f9e39914cf
--- a/MbedClient.h Thu Oct 23 14:41:58 2014 +0200 +++ b/MbedClient.h Sat Nov 15 11:21:01 2014 +0100 @@ -46,6 +46,7 @@ uint8_t setAuthorization(const char*, const char*); uint8_t beginRequest(); + uint8_t beginStream(const char*); uint8_t sendIdentifier(const char*); uint8_t sendData(const DataGenerator& generator); uint8_t endRequest(); @@ -54,7 +55,9 @@ void stop(); protected: + bool connect(); bool send(const char *str); + bool sendRequestHeader(const char*); bool sendBasicAuth(); private: @@ -64,6 +67,7 @@ private: const char *_host, *_username, *_password; uint16_t _port, _tries, _state; + bool _isStreamRequest; TCPSocketConnection _sock; MbedDataSource _source; MbedDataSink _sink;