Official reference client implementation for Cumulocity SmartREST on u-blox C027.
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: operation/OperationSupport.h
- Revision:
- 59:f96be79feccd
- Parent:
- 57:4af5f1bec3a6
- Child:
- 60:3c822f97fc73
--- a/operation/OperationSupport.h Fri Oct 24 08:55:17 2014 +0000 +++ b/operation/OperationSupport.h Fri Oct 24 11:30:43 2014 +0000 @@ -3,6 +3,10 @@ #include "AbstractSmartRest.h" #include "SmartRestTemplate.h" +#include "ComposedRecord.h" +#include "CharValue.h" +#include "OperationStore.h" +#include "ParsedRecord.h" class OperationSupport { @@ -12,6 +16,11 @@ bool init(); bool run(); +protected: + bool operationFromRecord(ParsedRecord&, OperationStore::Operation&); + bool updateOperation(OperationStore::Operation&); + CharValue& operationStateValue(OperationStore::Operation&); + private: bool _init; long& _deviceId; @@ -19,4 +28,9 @@ AbstractSmartRest& _client; }; +extern CharValue aOperationStatePending; +extern CharValue aOperationStateExecuting; +extern CharValue aOperationStateSuccessful; +extern CharValue aOperationStateFailed; + #endif \ No newline at end of file