2. 设备配置控制
功能描述:
修改SE3 AI迷你机配置功能命令。
参数描述(JSON格式):
一级参数
二级参数
类型
默认值
选择
说明
举例
method
string
无
必选
control_config
“control_config”
messageId
string
空
可选
MQ消息的唯一标识ID
“004a5b58-32e8-487e-a90a-2ce443877e7e”
config_field
dict
空
必选
需要更改的配置选项字段集合
support_stranger_group
bool
空
可选
陌生人自动入库字段选项,默认true为开启自动入库
true
threshold
float
空
可选
当前匹配阈值配置
82.0
threshold_range
list
空
可选
匹配阈值转化空间, 里面有阈值初始值,最佳阈值和最大阈值
[0.0, 82.0, 100.0]
extend_params
dict
空
可选
扩展字段
notify_path
string
无
必选
管理平台URL(相对地址),用于通过http方式回传命令执行结果。 相对地址的组合请参见 URL组合章节。 注意: 如果登陆时管理平台下发 uploadQueue 字段,则会通过MQ上传通道返回结果。 如果没有 uploadQueue 字段,并且 notify_path 为非空,则会向 notify_path 返回结果 如果两个字段都没有,则不会返回结果(即单向通信)。
"http://ip:port:/getResult"
MQ命令示例:
{
"method": "control_config", //此关键字和内容不能变
"config_field":
{
"support_stranger_group":true,//配置陌生人自动入库
"threshold":82.0, //配置最佳阈值
"threshold_range":[0.0, 82.0, 100.0] //配置阈值映射空间
},
"extend_params": {
"notify_path": "URL" // 返回mq命令处理结果的地址
} //扩展字段,里面内容可以为空,但字段为必选
}
返回结果示例:
{
"success":true,
"code":0,
"message":"执行陌生人入库开关命令执行成功",
"dev_sno":"dasdas23123" ,//设备唯一标识key
"messageKey":"control_config" ,//每一类消息格式的key
"result":{
"success_field":{
"support_stranger_group":true,//配置陌生人自动入库
"threshold":82.0, //配置最佳阈值
"threshold_range":[0.0, 82.0, 100.0] //配置阈值映射空间
},
"faild_field":{}
},
}
}
Last updated
Was this helpful?