开发者平台 / 视频管理系统(VMS)/API功能接口定义/设备消息透传
4.14.13 抓图上传ftp配置
4.14.13.1 ftp信息配置
Request: { "method": "set", "ftp_client": { "ftp_info": { "address": "0.0.0.0", "port": "21", "anonymous_enabled": "on", "username": "usrname", "password": "psswd", "directory_structure": "root" } } } Response: { "error_code": 0 }
请求参数说明:
参数 | 类型 | 说明 |
---|---|---|
adress | 字符串 | 服务器地址 |
port | 整型 | 端口 |
anonymous_enabled | 字符串 |
匿名与否的开关状态 取值范围: on:启用 off:禁用 |
username | 字符串 |
用户名,康默认值为空 中文一个字符算三个,最长长度为21 英文数字最长长度为64 |
password | 字符串 |
密码,默认值为空 最长64个英文字符 |
directory_structure | 字符串 |
目录结构 取值: root:保存在根目录 first:使用一级目录 second:使用二级目录 |
4.14.13.2 抓图开关设置
Request: { "method": "set", "people_counting": { "arming_schedule": { "monday": ["0000-2400"], "tuesday": ["0000-2400"], "wednesday": ["0000-2400"], "thursday": ["0000-2400"], "friday": ["0000-2400"], "saturday": ["0000-2400"], "sunday": ["0000-2400"] } } } Response: { "error_code": 0 }
请求参数说明:
参数 | 类型 | 说明 |
---|---|---|
monday | 字符串数组 | 周一的布防时间,一天最多可以设置n段,可设置的段数由/function/module_spec中的arming_schedule_max_num值决定。若某天存在多段布防时间,格式如下:["0000-0100","0200-0300"] |
tuesday | 字符串数组 | 周二的布防时间,一天最多可以设置n段,可设置的段数由/function/module_spec中的arming_schedule_max_num值决定。若某天存在多段布防时间,格式如下:["0000-0100","0200-0300"] |
wednesday | 字符串数组 | 周三的布防时间,一天最多可以设置n段,可设置的段数由/function/module_spec中的arming_schedule_max_num值决定。若某天存在多段布防时间,格式如下:["0000-0100","0200-0300"] |
thursday | 字符串数组 | 周四的布防时间,一天最多可以设置n段,可设置的段数由/function/module_spec中的arming_schedule_max_num值决定。若某天存在多段布防时间,格式如下:["0000-0100","0200-0300"] |
friday | 字符串数组 | 周五的布防时间,一天最多可以设置n段,可设置的段数由/function/module_spec中的arming_schedule_max_num值决定。若某天存在多段布防时间,格式如下:["0000-0100","0200-0300"] |
saturday | 字符串数组 | 周六的布防时间,一天最多可以设置n段,可设置的段数由/function/module_spec中的arming_schedule_max_num值决定。若某天存在多段布防时间,格式如下:["0000-0100","0200-0300"] |
sunday | 字符串数组 | 周日的布防时间,一天最多可以设置n段,可设置的段数由/function/module_spec中的arming_schedule_max_num值决定。若某天存在多段布防时间,格式如下:["0000-0100","0200-0300"] |