智能锁工作状态查询
- 接口功能
查询智能锁工作状态
- 请求地址
https://open.ys7.com/api/component/saas/smartlock/list/page
- 请求方式
POST
- 参数列表
参数名 | 类型 | 描述 | 是否必填 |
---|---|---|---|
accessToken | String | 开放平台授权获取的访问令牌 | Y |
deviceSerial | String | 智能锁序列号 | N |
deviceName | String | 智能锁设备名称 | N |
deviceModel | String | 智能锁设备型号 | N |
gatewaySerial | String | 智能网关设备序列号 | N |
gatewayName | String | 智能网关名称 | N |
gatewayModel | String | 智能网关型号 | N |
pageNo | Long | 页番号(默认1) | N |
pageSize | Long | 每页最大记录数(默认10) | N |
- 请求报文
POST https://open.ys7.com/api/component/saas/smartlock/list/page HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: open.ys7.com
accessToken=at.00x0f06f0p56qagmapzty4yt377dv4gb-4qp62iv681-0tz6l7z-voibrtqgp&deviceSerial=C74528358&pageNo=1&pageSize=10
- 返回数据
{
"code": "200",
"data": [{
"deviceSerial": "C74528358",
"deviceModel": "CS-LT15S-BsBM",
"firmwareVersion": "V1.0.0 build 190605",
"onlineStatus": "1",
"deviceEnable": "1",
"engModel": "0",
"battery": "70",
"lockSignal": "100",
"gwSignal": "100",
"doorLockStatus": ["0"],
"doorStatus": ["0"],
"gatewaySerial": "C48010620",
"gatewayName": "我去热无若",
"gatewayModel": "CS-DL-GW3",
"gwFirmwareVersion": "V1.0.0build 190617",
"gatewayMacAddress": "44:47:cc:01:07:51",
"networkType": "Lan",
"wirelessSignal": "0",
"updateTime": "2019-06-19 09:53:32"
}],
"msg": "操作成功",
"page": {
"page": 1,
"size": 10,
"total": 1
}
}
- 参数说明
参数名 | 类型 | 描述 | 是否必须 |
---|---|---|---|
code | int | 状态码-200表示成功 | Y |
msg | String | 具体错误描述信息 | Y |
data | Object[] | 业务结果 | N |
data[i].deviceSerial | String | 智能锁设备序列号 | N |
data[i].deviceName | String | 智能锁设备名称 | N |
data[i].deviceModel | String | 智能锁设备类型 | N |
data[i].firmwareVersion | String | 智能锁版本序列号 | N |
data[i].onlineStatus | String | 是否在线(0-离线;1-在线) | N |
data[i].deviceEnable | String | 设备使能状态(0-冻结;1-未冻结) | N |
data[i].battery | String | 电量百分比 | N |
data[i].lockSignal | String | 门锁接收射频信号强度(0-弱;1-中;2-强) | N |
data[i].gwSignal | String | 网关接收射频型号强度(0-弱;1-中;2-强) | N |
data[i].doorLockStatus | String | 门状态 | N |
data[i].doorStatus | String | 锁状态 | N |
data[i].gatewaySerial | String | 智能网关序列号 | N |
data[i].gatewayName | String | 智能网关名称 | N |
data[i].gatewayModel | String | 智能网关型号 | N |
data[i].gwFirmwareVersion | String | 智能网关程序版本 | N |
data[i].networkType | String | 当前网络类型 | N |
data[i].wirelessSignal | String | 信号强度(0-弱;1-中;2-强) | N |