Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MbedSmartRest by
MbedClient.cpp@3:ce2f116369bd, 2014-01-24 (annotated)
- Committer:
- vwochnik
- Date:
- Fri Jan 24 21:05:24 2014 +0000
- Revision:
- 3:ce2f116369bd
- Child:
- 5:ab909221d22d
fix
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vwochnik | 3:ce2f116369bd | 1 | #include "MbedClient.h" |
vwochnik | 3:ce2f116369bd | 2 | |
vwochnik | 3:ce2f116369bd | 3 | MbedClient::MbedClient(const char* url, const char* username, const char* password) |
vwochnik | 3:ce2f116369bd | 4 | : _url(url), _username(username), _password(password) |
vwochnik | 3:ce2f116369bd | 5 | { |
vwochnik | 3:ce2f116369bd | 6 | _state = 0; |
vwochnik | 3:ce2f116369bd | 7 | } |
vwochnik | 3:ce2f116369bd | 8 | |
vwochnik | 3:ce2f116369bd | 9 | uint8_t MbedClient::beginRequest() |
vwochnik | 3:ce2f116369bd | 10 | { |
vwochnik | 3:ce2f116369bd | 11 | } |
vwochnik | 3:ce2f116369bd | 12 | |
vwochnik | 3:ce2f116369bd | 13 | uint8_t MbedClient::sendIdentifier(const char*) |
vwochnik | 3:ce2f116369bd | 14 | { |
vwochnik | 3:ce2f116369bd | 15 | } |
vwochnik | 3:ce2f116369bd | 16 | |
vwochnik | 3:ce2f116369bd | 17 | uint8_t MbedClient::sendData(DataGenerator& generator) |
vwochnik | 3:ce2f116369bd | 18 | { |
vwochnik | 3:ce2f116369bd | 19 | } |
vwochnik | 3:ce2f116369bd | 20 | |
vwochnik | 3:ce2f116369bd | 21 | uint8_t MbedClient::endRequest() |
vwochnik | 3:ce2f116369bd | 22 | { |
vwochnik | 3:ce2f116369bd | 23 | } |
vwochnik | 3:ce2f116369bd | 24 | |
vwochnik | 3:ce2f116369bd | 25 | uint8_t MbedClient::awaitResponse() |
vwochnik | 3:ce2f116369bd | 26 | { |
vwochnik | 3:ce2f116369bd | 27 | } |
vwochnik | 3:ce2f116369bd | 28 | |
vwochnik | 3:ce2f116369bd | 29 | AbstractDataSource& MbedClient::receiveData() |
vwochnik | 3:ce2f116369bd | 30 | { |
vwochnik | 3:ce2f116369bd | 31 | return _buffer; |
vwochnik | 3:ce2f116369bd | 32 | } |
vwochnik | 3:ce2f116369bd | 33 | |
vwochnik | 3:ce2f116369bd | 34 | void MbedClient::stop() |
vwochnik | 3:ce2f116369bd | 35 | { |
vwochnik | 3:ce2f116369bd | 36 | _buffer.writeReset(); |
vwochnik | 3:ce2f116369bd | 37 | } |