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 Vincent Wochnik

Revision:
94:61d44636f020
Parent:
93:0acd11870c6a
Child:
95:010b0f7a0a1a
--- a/operation/Operation.h	Mon Apr 13 14:24:58 2015 +0000
+++ b/operation/Operation.h	Mon Apr 20 15:04:23 2015 +0000
@@ -1,12 +1,26 @@
 #ifndef OPERATIONSTORE_H
 #define OPERATIONSTORE_H
+#include "rtos.h"
+#define POOL_SIZE 32
 
-enum OperationState { OPERATION_PENDING, OPERATION_EXECUTING, OPERATION_SUCCESSFUL, OPERATION_FAILED };
+enum OperationState {
+        OPERATION_PENDING,
+        OPERATION_EXECUTING,
+        OPERATION_SUCCESSFUL,
+        OPERATION_FAILED
+};
 
 struct Operation {
-    Operation() : identifier(0), state(OPERATION_PENDING) {}
     long identifier;
     OperationState state;
 };
 
+typedef Mail<Operation, POOL_SIZE> OperationPool;
+
+const char* strOperationState(OperationState state);
+extern const char strPending[];
+extern const char strExecuting[];
+extern const char strSuccessful[];
+extern const char strFailed[];
+
 #endif