开始使用
  • English
  • 简体中文
前往官网
开始使用
  • English
  • 简体中文
前往官网
  • 开始使用
  • 核心概念
  • 开发指南
  • 设备能力与事件参考
    • 按设备类型浏览
    • 设备能力
      • 通用方法
      • 侦测与告警
        • 布撤防
        • 关注区域
        • 客流
        • 哭声
        • 离岗
        • 人脸识别
        • 跌倒
        • 手势呼叫
        • 区域入侵
        • 徘徊
        • 未成年检测
        • 人车混合
        • 动检
        • 视频遮挡
        • 车辆违停
        • 人形
        • 宠物
        • PIR
        • 车牌识别
        • 车辆守卫
        • 警笛
          • detection.siren.enabled(获取警笛开关属性)
          • detection.siren.linkage(获取报警联动警笛属性)
          • detection.siren.linkage(设置报警联动警笛属性)
          • detection.siren.linkageEvents(获取警笛联动事件属性)
          • detection.siren.linkageEvents(设置警笛联动事件属性)
          • detection.siren.plan(获取警笛布防检测时间段属性)
          • detection.siren.plan(设置警笛布防检测时间段属性)
          • detection.siren.state(获取警笛状态属性)
          • detection.siren.start(开启警笛)
          • detection.siren.stop(关闭警笛)
          • detection.siren.countdown(获取警笛状态倒计时)
          • detection.siren.duration(设置警笛时长)
          • detection.siren.activated(警笛瞬时告警)
          • detection.siren.holdDuration(获取警笛保持时长属性)
          • detection.siren.holdDuration(设置警笛保持时长属性)
        • 语音呼救
        • 异常音
        • 越线
        • 无人出现
        • 车辆
        • 门磁
        • 防拆
        • 门控配件
        • 环境传感
        • 目标检测框
      • 图像
      • 云台
      • 灯光
      • 录像
      • 音频
      • 媒体
      • 网络
      • 电源
      • 隐私
      • 呼叫
      • 存储
      • 系统
      • 算法
      • 设备维护
      • 控制
    • 事件总览
    • 权限码
    • 错误码
    • 告警与能力消息
    • 常见问题
    • 历史能力与推送类型
  • API 参考
  • SDK 与工具
  • 方案
  • 平台与支持
本页目录
功能详情
请求地址
最小权限
传入参数说明
样例输入
错误码

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。写超时不代表未执行。

传入参数说明

参数名参数类型是否必填参数说明
tokenString是管理员、子用户或子账号 accessToken
deviceIdString是设备序列号
productIdString否可省略。传了且与该设备实际型号不一致 → DV2009
channelIdString条件通道级必填,设备级不要传
propertiesObject是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

警笛

detection.siren.holdDuration(获取警笛保持时长属性)
detection.sos.enabled(获取语音呼救开关属性)