Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Committer:
xinlei
Date:
Mon Apr 20 15:04:23 2015 +0000
Revision:
93:61d44636f020
Child:
94:010b0f7a0a1a
Integration of new device push code base.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
xinlei 93:61d44636f020 1 #include "Operation.h"
xinlei 93:61d44636f020 2
xinlei 93:61d44636f020 3 const char strPending[] = "PENDING";
xinlei 93:61d44636f020 4 const char strExecuting[] = "EXECUTING";
xinlei 93:61d44636f020 5 const char strSuccessful[] = "SUCCESSFUL";
xinlei 93:61d44636f020 6 const char strFailed[] = "FAILED";
xinlei 93:61d44636f020 7
xinlei 93:61d44636f020 8 const char* strOperationState(OperationState state)
xinlei 93:61d44636f020 9 {
xinlei 93:61d44636f020 10 switch (state) {
xinlei 93:61d44636f020 11 case OPERATION_EXECUTING: return strExecuting;
xinlei 93:61d44636f020 12 case OPERATION_SUCCESSFUL: return strSuccessful;
xinlei 93:61d44636f020 13 case OPERATION_FAILED: return strFailed;
xinlei 93:61d44636f020 14 case OPERATION_PENDING: return strPending;
xinlei 93:61d44636f020 15 }
xinlei 93:61d44636f020 16 }