Response for Delivering a Command to a Device
Topic
|
Topic |
/v1/devices/{gatewayId}/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.