Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
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;
}
}

Cumulocity