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

operation/Opeartion.cpp

Committer:
xinlei
Date:
2016-08-08
Revision:
139:f8ab852e83e7
Parent:
109:2ec12f10ebf4

File content as of revision 139: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;
    }
}