getCruiseConfig:获取定时巡航设置
功能详情
获取设备的定时巡航配置。
备注:需要设备支持TimedCruise定时巡航能力集
请求地址
https://openapi.lechange.cn/openapi/getCruiseConfig
传入参数说明
参数名 | 参数类型 | 是否必填 | 默认值 | 合法值 | 参数说明 |
---|---|---|---|---|---|
token | String | 是 | 开发者在账号对接模块获取的Token | ||
deviceId | String | 是 | 设备序列号 | ||
channelId | String | 是 | 通道号 |
样例输入
{
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"system":{
"ver":"1.0",
"appId":"lcd08b4b07ce224508",
"sign":"74bc756ebd53e9eef2836f8cf1730c10",
"time":1599031074,
"nonce":"8ec8a7bd1d1c95420de20d92422d457d"
},
"params":{
"token":"At_00006acr3456d12312d3grf60147de7ec",
"deviceId":"MEGREZ0000001842",
"channelId":"0"
}
}
返回data字段说明
字段名 | 字段类型 | 设备序列号 | ||
---|---|---|---|---|
deviceId | String | 设备总量 | ||
channelId | String | 通道号 | ||
cruisePlan | cruiseName | String | 巡航计划唯一标示符 | |
mode | String | 巡航模式,default:默认模式,即全景巡航;collection:定制模式,即收藏点巡航 | ||
cruisePath | String | 巡航路径,当mode=collection时有效。返回值如下:default:默认路径,由设备端决定;collection:自定义路径,即collection中收藏点的顺序 | ||
collection | name | String | 收藏点参数,收藏点的唯一标示符 | |
stayTime | Integer | 收藏点参数,当mode=collection时有效。每个收藏点的停留时间,单位为秒 | ||
cruises | period | String | 巡航周期,Monday:每周一,Tuesday:每周二,Wednesday:每周三,Thursday:每周四,Friday:每周五,Saturday:每周六,Sunday:每周日 | |
beginTime | String | 开始时间。时间格式为:THHMMSS | ||
endTime | String | 结束时间。时间格式为:THHMMSS |
样例输出
{
"result":{
"msg":"操作成功。",
"code":"0",
"data":{
"deviceId":"QWERASSDF",
"channelId":"0",
"cruisePlan":{
"cruiseName":"xunhang",
"mode":"collection",
"cruisePath":"collection",
"collection":[{
"name":"room",
"stayTime":5
}],
"cruises":[{
"period":"Tuesday",
"beginTime":"T112233",
"endTime":"T114455"
}]
}
}
},
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af"
}