1.用途
采用Post方式,请求参数为JSON格式
2.URL
http://124.223.60.234:8181/spartan/deviceconfig/updateTerminalNotifyConfig
3.请求参数
3.1.参数示例
{
"terminalId":"DE23DFD430F046B5B9683F7593FFF8D7",
"motionSensor": 0,
"lightSensor": 0,
"tempSensor": 0
}
3.2.参数说明
字段 | 类型 | 说明 | 是否必须 |
---|---|---|---|
terminalId | String | 设备唯一标识 | Y |
motionSensor | int | motion sensor推送状态;0:关闭;1:开启 | Y |
lightSensor | int | light Sensor 推送状态,0:关闭;1:开启 | Y |
tempSensor | int | temp & humidity Sensor 推送状态,0:关闭;1:开启 | Y |
4.返回参数
4.1.返回参数示例
{
"code": 200,
"message": "Operation succeeded",
"data": null
}
4.2.返回参数说明
字段 | 类型 | 说明 |
---|---|---|
code | int | 返回状态,详情参见“返回状态集” |
message | String | 返回结果描述 |
data | Object | 返回结果体 |
5.测试示例
作者:admin 创建时间:2023-11-02 18:17
最后编辑:admin 更新时间:2024-06-13 09:41
最后编辑:admin 更新时间:2024-06-13 09:41