Response for Delivering a Command to a Device
Topic
Topic |
/v1/devices/{ deviceId}/commandResponse |
---|---|
Publisher |
Edge device |
Subscriber |
IoT platform |
Parameter Description
Field |
Mandatory/Optional |
Type |
Description |
---|---|---|---|
msgType |
Mandatory |
String |
This field has a fixed value of deviceRsp, which indicates a response returned by a device. |
mid |
Mandatory |
Int |
Command ID. |
errcode |
Mandatory |
Int |
Result code for request processing. The options are as follows:
|
body |
Optional |
ObjectNode |
Command response. |
Example
{ "body": { "orginParameters": { "temperature": 123 }, "state": "ok" }, "errcode": 0, "mid": 54132, "msgType": "deviceRsp" }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot