Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

operation/Opeartion.cpp

Committer:
xinlei
Date:
2016-08-08
Revision:
138:f8ab852e83e7
Parent:
108:2ec12f10ebf4

File content as of revision 138:f8ab852e83e7:

#include "Operation.h"

const char *strPending = "PENDING";
const char *strExecuting = "EXECUTING";
const char *strSuccessful = "SUCCESSFUL";
const char *strFailed = "FAILED";

const char* strOperationState(const OperationState state)
{
    switch (state) {
        case OPERATION_EXECUTING:  return strExecuting;
        case OPERATION_SUCCESSFUL: return strSuccessful;
        case OPERATION_FAILED:     return strFailed;
        case OPERATION_PENDING:    return strPending;
    }
}