Cumulocity Official / Mbed 2 deprecated MbedSmartRestMain Featured

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Vincent Wochnik

Revision:
67:c360a2b2c948
Parent:
65:a62dbef2f924
Child:
68:0dc778a16d0d
--- a/operation/OperationSupport.h	Thu Oct 30 14:46:22 2014 +0000
+++ b/operation/OperationSupport.h	Sun Nov 30 19:34:49 2014 +0000
@@ -27,18 +27,20 @@
 
     void thread1();
     void thread2();
+    void thread3();
 
     static void thread1_func(void const*);
     static void thread2_func(void const*);
+    static void thread3_func(void const*);
 
 private:
-    bool _init;
+    bool _init, _firstRun;
     long& _deviceId;
     SmartRestTemplate& _tpl;
     AbstractSmartRest& _client;
     OperationStore _store;
     OperationExecutor _executor;
-    Thread _thread1, _thread2;
+    Thread _thread1, _thread2, _thread3;
 };
 
 extern CharValue aOperationStatePending;