1.4.8.8.1. 更新触发点集合
更新设备上的的触发点集合
目前仅控制器设备支持该功能
Request:
POST /v1.0/device/triggerList/update
Content-Type: application/json
Authorization: ACCESS_TOKEN
Timestamp: 1529223702
{
"lang": "zh-cn",
"usr": "username",
"pwd": "password",
"payload": {
"params": {
"sn": "33998400021314",
"triggerListNum": 1,
"triggerDatas": [{
"type": 0,
"triggerNum": 1
}]
}
}
}
参数名 | 类型 | 必填 | 描述 |
---|---|---|---|
sn | String | Y | 设备序列号 |
triggerListNum | Integer | Y | 触发点集合编号(设备内唯一) |
type | Integer | Y | 功能类型, 0:门, 4:读头 |
triggerNum | Integer | Y | 触发点编号, 0:所有的门编号(doorNum)或者读头编号(readerNum);>0:指定的门编号(doorNum)或者读头编号(readerNum) |
Response:
{
"code": "00000000",
"mid": "xxx",
"message": "success"
}
1.4.8.8.2. 删除触发点集合
删除设备上的触发点集合
目前仅控制器设备支持该功能
Request:
POST /v1.0/device/triggerList/delete
Content-Type: application/json
Authorization: ACCESS_TOKEN
Timestamp: 1529223702
{
"lang": "zh-cn",
"usr": "username",
"pwd": "password",
"payload": {
"params": {
"sn": "33998400021314",
"triggerListNums": [1, 2, 3]
}
}
}
参数名 | 类型 | 必填 | 描述 |
---|---|---|---|
sn | String | Y | 设备序列号 |
triggerListNums | Integer[] | Y | 触发点集合编号集合 |
Response:
{
"code": "00000000",
"mid": "xxx",
"message": "success"
}