说明文档
切换说明
设备方法命令发送
发给设备的设备方法命令发送的推送信息
注:请先查看 推送目标服务配置 和 推送成功后的响应:推送目标服务配置说明
推送请求的body示例:
{ "type": "device_send_action", "appid": "xxx", "payload": { "pdid": "", "deviceSn": "xxx", "parentDeviceSn": null, "iid": "xxx", "name": "test action", "inContent": { "param1": 10, "param2": "test in" } }, "timestamp": 1610442942922 }请求body说明
| 字段 | 值描述 |
|---|---|
| type | 消息类型,这里为:device_send_action |
| appid | 应用id |
| timestamp | 创建时间(时间戳) |
| payload | 消息内容 |
- payload消息内容
| 字段 | 值描述 |
|---|---|
| pdid | 设备所属产品id |
| deviceSn | 设备sn |
| parentDeviceSn | 父设备sn |
| iid | 消息id |
| name | 方法名称 |
| inContent | 方法输入参数 |
- inContent方法输入/输出参数
| 字段 | 值描述 |
|---|---|
| param1/param2 | 参数值,注意:param1/param2是参数名、是可变的 |

飞思公众号
关注我们
微信咨询