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.
Diff: ICE-Application/src/CloudDataHandler/CloudDataHandler.h
- Revision:
- 2:02cb20446785
- Parent:
- 1:b2e90cda7a5a
--- a/ICE-Application/src/CloudDataHandler/CloudDataHandler.h Tue Jan 24 19:06:45 2017 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,68 +0,0 @@ -#ifndef CLOUDDATAHANDLER_H -#define CLOUDDATAHANDLER_H - -#include <string> - -#define HEARTBEAT_MSG_MTYPE 20 // heartbeat (out) - -#define SETPOINT_CONTROL_MTYPE 100 // create a setpoint control (in) -#define TIMER_CONTROL_MTYPE 101 // create a timer control (in) -#define PID_CONTROL_MTYPE 102 // create a PID control (in) -#define MANUAL_CONTROL_MTYPE 103 // create a manual control (in) -#define COMPOSITE_CONTROL_MTYPE 104 // create a composite control (in) -#define FAILSAFE_CONTROL_MTYPE 105 // create a failsafe control (in) -#define SENSOR_ERR_CONTROL_MTYPE 106 // create a sensor error control (in) -#define SEQUENCE_CONTROL_MTYPE 107 // create a sequence control (in) - -#define INPUT_CONFIG_MTYPE 200 // create an nput (in) -#define OUTPUT_CONFIG_MTYPE 201 // create an output (in) -#define VINPUT_CONFIG_MTYPE 203 // create a virtual input (in) -#define VOUTPUT_CONFIG_MTYPE 204 // create a virtual output (in) -#define HOLDING_CONFIG_MTYPE 205 // create a holding config (in) - -#define VIRTUAL_COMMAND_MTYPE 250 // virtual command (in) -#define EQUATION_COMMAND_MTYPE 251 // equation command (in) - -#define DESTROY_SETPOINT_MTYPE 300 // destroys a setpoint control (in) -#define DESTROY_TIMER_MTYPE 301 // destroys a timer control (in) -#define DESTROY_PID_MTYPE 302 // destroys a PID control (in) -#define DESTROY_MANUAL_MTYPE 303 // destroys a manual control (in) -#define DESTROY_COMPOSITE_MTYPE 304 // destroys a composite control (in) -#define DESTROY_FAILSAFE_MTYPE 305 // destroys a failsafe control (in) -#define DESTROY_SENSOR_ERR_MTYPE 306 // destroys a sensor error control (in) -#define DESTROY_SEQUENCE_MTYPE 307 // destroys a sequence control (in) - - -#define EVENT_LOG_MTYPE 300 // event log, pump actuation, etc. (out) -#define DEVICE_CONN_MTYPE 301 // device connected (out) -#define LIVE_DATA_MTYPE 400 // live data (out) - -// BLE requests -#define BT_MODBUS_HOLD_COMMAND_MTYPE 1000 -#define BT_MODBUS_RAW_COMMAND_MTYPE 1002 -#define BT_MODBUS_COMMAND_REPLY_MTYPE 1001 - -#define BT_GETLOG_COMMAND_MTYPE 1100 -#define BT_GETLOG_COMMAND_REPLY_MTYPE 1101 -#define BT_GETLIVE_COMMAND_MTYPE 1200 - -#define BT_START_CAL_COMMAND_MTYPE 1300 -#define BT_1PT_CAL_COMMAND_MTYPE 1301 - -#define SETPOINT_CONTROL_REPLY_MTYPE 500 -#define TIMER_CONTROL_REPLY_MTYPE 501 -#define MANUAL_CONTROL_REPLY_MTYPE 503 -#define COMPOSITE_CONTROL_REPLY_MTYPE 504 - -#define INPUT_CONFIG_REPLY_MTYPE 550 -#define OUTPUT_CONFIG_REPLY_MTYPE 551 - -#define OPERATION_SUCCESS 0 -#define ORDER_NOT_SUPPORTED 500 -#define DATA_ARRAY_MISSING 501 -#define UNKNOWN_OPERATION 502 - -void CloudDataHandler(void const *args); -bool StoreReceivedFile( std::string &payload_string ); - -#endif \ No newline at end of file