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"
} Last Article: Delivering a Command to a Device
Next Article: Reporting Device Data
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.