批量配置
简要描述:
- 设备批量配置接口
请求URL:
- /setting
请求方式:
- POST
Body参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| ids | 是 | [string] | 序列号id数组 (逗号分隔) |
| username | 是 | string | 设备远程登录用户名 |
| password | 是 | string | 设备远程登录密码 |
| channel | 否 | [int] | 配置通道,从0开始 |
| rtsp_username | 否 | string | RTSP 用户名 |
| rtsp_password | 否 | string | RTSP 密码 |
| rtsp_uri | 否 | string | RTSP URL |
| rtsp_enable | 否 | int | rtsp禁用(==0)开启 (==1) |
| rtmp_publish_uri | 否 | string | RTMP发布地址1 |
| rtmp_enable | 否 | int | RTMP发布地址1禁用(==0)开启 (==1) |
| recordEnable | 否 | int | 录像禁用(==0)开启 (==1) |
请求示例
{
"ids": ["1","2","3"],
"username": "admin",
"password": "admin",
"channel": [0,1],
"rtmp_enable": 0
}
返回
{
"1":"设备不存在或已离线",
"2":"设备不存在或已离线",
"3":"ok"
}
备注
这份文档没解决你的问题?联系我们,技术工程师直接对接。