A client for the SmartREST protocol from Cumulocity.
Fork of MbedSmartRest by
Diff: MbedClient.cpp
- Revision:
- 7:26524a6a04a1
- Parent:
- 5:ab909221d22d
- Child:
- 9:3bbb83e7cbfd
diff -r 71e0439d9af7 -r 26524a6a04a1 MbedClient.cpp --- a/MbedClient.cpp Thu Jan 30 11:47:16 2014 +0000 +++ b/MbedClient.cpp Sun Feb 02 14:55:16 2014 +0000 @@ -59,6 +59,7 @@ if ((_state != STATE_IN_REQUEST) && (_state != STATE_SENT_ID) && (_state != STATE_SENT_DATA)) return CLIENT_INTERNAL_ERROR; _state = STATE_REQ_COMPLETE; + return CLIENT_OK; } uint8_t MbedClient::awaitResponse() @@ -86,4 +87,5 @@ if (_generator != NULL) delete _generator; _generator = NULL; + _state = STATE_INIT; }