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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Operation.h Source File

Operation.h

00001 #ifndef OPERATIONSTORE_H
00002 #define OPERATIONSTORE_H
00003 #include "rtos.h"
00004 #define POOL_SIZE 32
00005 
00006 enum OperationState {
00007         OPERATION_PENDING,
00008         OPERATION_EXECUTING,
00009         OPERATION_SUCCESSFUL,
00010         OPERATION_FAILED
00011 };
00012 
00013 struct Operation {
00014     long identifier;
00015     OperationState state;
00016 };
00017 
00018 typedef Mail<Operation, POOL_SIZE> OperationPool;
00019 
00020 const char* strOperationState(OperationState state);
00021 extern const char *strPending;
00022 extern const char *strExecuting;
00023 extern const char *strSuccessful;
00024 extern const char *strFailed;
00025 
00026 #endif