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:
- 63:010bbbb4732a
- Parent:
- 62:86a04c5bda18
- Child:
- 65:a62dbef2f924
--- a/operation/OperationSupport.h Wed Oct 29 21:09:29 2014 +0000 +++ b/operation/OperationSupport.h Thu Oct 30 11:58:03 2014 +0000 @@ -19,12 +19,16 @@ bool run(); protected: + bool requestPendingOperations(); bool operationFromRecord(ParsedRecord&, OperationStore::Operation&); bool updateOperation(OperationStore::Operation&); CharValue& operationStateValue(OperationStore::Operation&); - void thread(); - static void thread_func(void const*); + void thread1(); + void thread2(); + + static void thread1_func(void const*); + static void thread2_func(void const*); private: bool _init; @@ -33,7 +37,7 @@ AbstractSmartRest& _client; OperationStore _store; OperationExecutor _executor; - Thread _thread; + Thread _thread1, _thread2; }; extern CharValue aOperationStatePending;