A client for the SmartREST protocol from Cumulocity.
Fork of MbedSmartRest by
Diff: MbedClient.cpp
- Revision:
- 3:ce2f116369bd
- Child:
- 5:ab909221d22d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MbedClient.cpp Fri Jan 24 21:05:24 2014 +0000 @@ -0,0 +1,37 @@ +#include "MbedClient.h" + +MbedClient::MbedClient(const char* url, const char* username, const char* password) + : _url(url), _username(username), _password(password) +{ + _state = 0; +} + +uint8_t MbedClient::beginRequest() +{ +} + +uint8_t MbedClient::sendIdentifier(const char*) +{ +} + +uint8_t MbedClient::sendData(DataGenerator& generator) +{ +} + +uint8_t MbedClient::endRequest() +{ +} + +uint8_t MbedClient::awaitResponse() +{ +} + +AbstractDataSource& MbedClient::receiveData() +{ + return _buffer; +} + +void MbedClient::stop() +{ + _buffer.writeReset(); +}