Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Committer:
xinlei
Date:
Wed Apr 22 11:22:25 2015 +0000
Revision:
94:010b0f7a0a1a
Parent:
93:61d44636f020
Child:
108:2ec12f10ebf4
v2.1rc2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
xinlei 93:61d44636f020 1 #include "Operation.h"
xinlei 93:61d44636f020 2
xinlei 94:010b0f7a0a1a 3 const char *strPending = "PENDING";
xinlei 94:010b0f7a0a1a 4 const char *strExecuting = "EXECUTING";
xinlei 94:010b0f7a0a1a 5 const char *strSuccessful = "SUCCESSFUL";
xinlei 94:010b0f7a0a1a 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 }