智能锁智能网关配对

  • 接口功能

将智能锁和已添加到萤石云的智能网关进行配对

  • 请求地址

https://open.ys7.com/api/component/saas/smartlock/gateway/add

  • 请求方式

POST

  • 参数列表
参数名 类型 描述 是否必填
accessToken String 开放平台授权获取的访问令牌 Y
deviceSerial String 智能锁序列号 Y
gatewaySerial String 智能网关序列号 Y
  • 请求报文
POST https://open.ys7.com/api/component/saas/smartlock/gateway/add HTTP/1.1
Host: open.ys7.com
content-type: application/x-www-form-urlencoded
accessToken=at.axk5tx9j6y2pkjnacqzz461x7qyy7oej-837w5x8x8a-1qwxmsq-goctoffs8&deviceSerial=C74528358&gatewaySerial=C48010620
  • 返回数据
{
    "code": "200",
    "msg": "操作成功"
}
  • 参数说明
参数名 类型 描述 是否必须
code int 状态码-200表示成功 Y
msg String 具体错误描述信息 Y
  • 返回码
返回码 返回消息 描述
saas-71012 智能网关(*)和智能锁(*)已配对
saas-71013 智能网关没有未关联智能锁的通道
saas-71021 智能网关和智能锁配对异常

results matching ""

    No results matching ""