Respond Command¶
Applications can invoke two EnOS open APIs to send control commands to devices in IoT Hub, namely the Set Measurement Point and Invoke Service APIs. The Respond Command node updates the status of these commands.
Node Type¶
IoT Hub.
Input and Output Ability¶
This node has multiple entry points and 1 exit point. Both the input and the output are JSON.
The data structure of the command is according to the standard data format for EnOS device access. For more information, see Get Command API.
Node Properties¶
Name
The name for this node.
Description
The description for this node.
Limitations¶
For
outputData
, no return value is provided for measurement point setting commands. For service invocation commands, this will return the service output fields defined in the model.The command structure needs to follow the EnOS standard format.
Samples¶
Input Sample¶
{
"commandId": "1234567",
"code":"200",
"message":"message",
"data": {}
}
Output Sample¶
Command Type: Set Measurement Point¶
{
"commandId": "1234567",
"code":"200",
"message":"message",
}
Command Type: Invoke Service¶
{
"commandId": "1234567",
"code":"200",
"message":"message",
"outputData": {
"parameter_1": 1.3,
"parameter_2": 13
}
}