设置烟火相机火灾监测设置
https://open.eye4cloud.com/{{open_id}}/open/v1/device/fireMonitoringSettings| 字段名 | 是否必传 | 类型 | 备注 |
|---|---|---|---|
| device_id | 是 | string | 设备id |
| timestamp | 是 | int64 | 时间戳,单位:秒 |
| nonce | 是 | string | 随机字符串,8~20个字符 |
| sign | 是 | string | 具体实现方法,请参考《生成sign的示例代码》 |
| password | 否 | string | 设备密码,如果不传则使用开放平台中注册设备的密码 |
| data | 否 | string | 设备DATA,可传空字符串 |
| imei | 否 | string | 设备IMEI,可传空字符串 |
| command | 是 | int | 操作类型:0=获取,1=设置 |
| fire_sensitivity | 否 | int | 侦测灵敏度:1=低,2=中,3=高 |
| fire_type | 否 | int | 告警推送开关:0=关闭,2=开启 |
| fire_place | 否 | int | 使用场景0=室内,1=室外 |
curl 'https://open.eye4cloud.com/{{open_id}}/open/v1/device/fireMonitoringSettings' \
-H 'Content-Type: application/json' \
--data-raw '{
"device_id": "xxxx",
"timestamp": 1758867195,
"nonce": "",
"sign": "",
"password": ""
}'
| 字段名 | 类型 | 备注 |
|---|---|---|
| error_code | int | 状态码:0正常,其他异常 |
| error_message | string | 错误信息:正常为success |
| data | object | {} |
| data.resp | int | 1=成功,2=失败 |
| data.command | int | 操作类型:0=获取,1=设置 |
| data.fire_sensitivity | int | 侦测灵敏度:1=低,2=中,3=高 |
| data.fire_type | int | 告警推送开关:0=关闭,2=开启 |
| data.fire_place | int | 使用场景0=室内,1=室外 |
示例:
{
"error_code": 0,
"error_message": "success",
"error_tips": "",
"data": {
"resp": 1,
"command": 0,
"fire_sensitivity": 3,
"fire_type": 1,
"fire_place": 0
}
}