1. 开启上行回调接口

描述:

主动调用接口开启相机上行数据回调功能。

请求说明:

协议 方法 PATH
HTTPS POST /openApi/camera/openCallback

Body参数:

参数 类型 必填 说明
appId String appId
expires String 过期时间
sign String 签名
deviceNo String 设备编号
cmd String 固定值:cameraOpenCallback
data String 上行回调数据
- onlineStatus int 设备上下线回调,0:关闭,1:开启
- recognizeResult int 识别结果回调,0:关闭,1:开启
- ioStatus int IO输入状态变化回调,0:关闭,1:开启
- eventStatus int 异常事件如倒车、撞杆、跟车、抬杆等事件回调,0:关闭,1:开启
- whiteResult int 白名单下发结果回调,0:关闭,1:开启
- ossJsonStr String 图片储存阿里云配置

返回参数:

参数 类型 必填 说明
code int 响应状态码
msg String 响应消息
appId String appId
expires String 过期时间
sign String 签名
deviceNo String 设备编号
cmd String 固定值:cameraOpenCallback
data String 空字符串,固定值:””

请求示例:

{"appId":"ym3b7f242fc0814489","expires":"1739583239","deviceNo":"123456789-987654321","sign":"36f392b389e945b5c7ca8baa36fae53b","cmd":"cameraOpenCallback","data":"{\"onlineStatus\":1,\"recognizeResult\":1,\"ioStatus\":1,\"eventStatus\":1,\"whiteResult\":1,\"ossJsonStr\":\"{\\\"accessKeyId\\\":\\\"1\\\",\\\"accessKeySecret\\\":\\\"1\\\",\\\"accessEndpoint\\\":\\\"1\\\",\\\"accessImgBucket\\\":\\\"1\\\"}\"}"}

返回示例:

{
  "code": 0,
  "msg": "操作成功",
  "appId": "ymc03e8b5544714290",
  "expires": "1767841794",
  "sign": "217386911ac83291070c69fc67dcb4e4",
  "deviceNo": "123456789-987654321",
  "cmd": "cameraOpenCallback",
  "data": ""
}
作者:yrh  创建时间:2026-06-06 15:35
最后编辑:yrh  更新时间:2026-06-06 16:01