更新时间:2022-09-01 GMT+08:00
分享

设备命令下发响应

主题Topic

Topic

/v1/devices/{gatewayId}/commandResponse

消息发送方

边设备

消息接收方

物联网平台

参数说明

字段名

必选/可选

类型

参数描述

msgType

必选

String

固定值"deviceRsp",表示设备的应答消息。

mid

必选

Int

命令ID。

errcode

必选

Int

请求处理的结果码。

  • “0”表示成功。
  • 非“0”表示失败。

body

可选

ObjectNode

命令的应答。

示例

{
         "body": {
                   "orginParameters": {
                            "temperature": 123
                   },
                   "state": "ok"
         },
         "errcode": 0,
         "mid": 54132,
         "msgType": "deviceRsp"
}
分享:

    相关文档

    相关产品