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
operation/OperationStore.h@60:3c822f97fc73, 2014-10-24 (annotated)
- Committer:
- vwochnik
- Date:
- Fri Oct 24 15:00:36 2014 +0000
- Revision:
- 60:3c822f97fc73
- Parent:
- 59:f96be79feccd
- Child:
- 62:86a04c5bda18
operation thread + funcs
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vwochnik | 59:f96be79feccd | 1 | #ifndef OPERATIONSTORE_H |
vwochnik | 59:f96be79feccd | 2 | #define OPERATIONSTORE_H |
vwochnik | 59:f96be79feccd | 3 | |
vwochnik | 59:f96be79feccd | 4 | #define STATE_PENDING 0 |
vwochnik | 59:f96be79feccd | 5 | #define STATE_EXECUTING 1 |
vwochnik | 59:f96be79feccd | 6 | #define STATE_SUCCESSFUL 2 |
vwochnik | 59:f96be79feccd | 7 | #define STATE_FAILED 3 |
vwochnik | 59:f96be79feccd | 8 | |
vwochnik | 59:f96be79feccd | 9 | class OperationStore |
vwochnik | 59:f96be79feccd | 10 | { |
vwochnik | 59:f96be79feccd | 11 | public: |
vwochnik | 59:f96be79feccd | 12 | struct Operation { |
vwochnik | 60:3c822f97fc73 | 13 | long identifier; |
vwochnik | 59:f96be79feccd | 14 | const char *description; |
vwochnik | 59:f96be79feccd | 15 | uint8_t state; |
vwochnik | 59:f96be79feccd | 16 | }; |
vwochnik | 59:f96be79feccd | 17 | }; |
vwochnik | 59:f96be79feccd | 18 | |
vwochnik | 59:f96be79feccd | 19 | #endif |