detection.siren.holdDuration(设置警笛保持时长属性)
detection.siren.holdDuration:设置警笛保持时长属性
detection.siren.holdDuration · 通道级 · 权限 Config
功能详情
设置警笛保持时长。范围 0~600,步长 1,单位 s。
请求地址
POST https://openapi-[DataCenter].easy4ip.com/openapi/v2/device.property.set
最小权限
管理员操作自己绑定的设备不需要权限。操作被分享设备需要基础配置权限。子用户绑定不需要。子账号需要 Config。通道级漏 channelId 返回 DV2007。设备和通道写在同一次请求里返回 DV2008。写超时不代表未执行。
传入参数说明
| 参数名 | 参数类型 | 是否必填 | 参数说明 |
|---|---|---|---|
token | String | 是 | 管理员、子用户或子账号 accessToken |
deviceId | String | 是 | 设备序列号 |
productId | String | 否 | 可省略。传了且与该设备实际型号不一致 → DV2009 |
channelId | String | 条件 | 通道级必填,设备级不要传 |
properties | Object | 是 | key 为 detection.siren.holdDuration |
取值 0~600,步长 1,单位 s。
样例输入
{
"id": "d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"system": {
"ver": "1.0",
"appId": "lcdxxxxxxxxx",
"sign": "xjhCQBoJ9hRDsCjyDcHjtDNzRZ3ZJezcawsfWeiaoxU=",
"time": 1706511734,
"nonce": "f5a1ae2d-c09c-4d39-a744-83a5c2c653c2"
},
"params": {
"token": "<yourAccessToken>",
"deviceId": "TESTIPC000012345",
"channelId": "0",
"properties": { "detection.siren.holdDuration": 50 }
}
}
错误码
网关
DV20xx
