Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
operation/Opeartion.cpp@138:f8ab852e83e7, 2016-08-08 (annotated)
- Committer:
- xinlei
- Date:
- Mon Aug 08 11:05:57 2016 +0000
- Revision:
- 138:f8ab852e83e7
- Parent:
- 108:2ec12f10ebf4
Etisalat and Teleena APN.
Who changed what in which revision?
User | Revision | Line number | New 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 | 108:2ec12f10ebf4 | 8 | const char* strOperationState(const 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 | } |