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 Opeartion.cpp Source File

Opeartion.cpp

00001 #include "Operation.h"
00002 
00003 const char *strPending = "PENDING";
00004 const char *strExecuting = "EXECUTING";
00005 const char *strSuccessful = "SUCCESSFUL";
00006 const char *strFailed = "FAILED";
00007 
00008 const char* strOperationState(const OperationState state)
00009 {
00010     switch (state) {
00011         case OPERATION_EXECUTING:  return strExecuting;
00012         case OPERATION_SUCCESSFUL: return strSuccessful;
00013         case OPERATION_FAILED:     return strFailed;
00014         case OPERATION_PENDING:    return strPending;
00015     }
00016 }