Skip to content

查锁模块

查询锁添加时间

  1. 请求链接: /room/queryAddingTime

  2. 请求方式: POST

  3. 参数说明:

名称类型是否必需示例描述
lockNameStringY"123688"
  1. 返回参数及示例:
参数类型描述
statusInt状态码
statusTextString提示信息
contentString返回数据
json
{
  "errorCode": -3047,
  "description": "锁编号不存在。",
  "alert": "锁编号不存在。",
  "errorMsg": "Lock number doesn't exist."
}

获取Wifi锁服务器

  1. 请求链接: /wifiLock/getWifiServiceIp

  2. 请求方式: POST

  3. 参数说明:

名称类型是否必需示例描述
  1. 返回参数及示例:
参数类型描述
statusInt状态码
statusTextString提示信息
contentString返回数据
json
{
  "serviceNum": 2,
  "serviceList": [
    {
      "serviceIp": "192.168.1.1",
      "port": "8056"
    },
    {
      "serviceIp": "192.168.1.1",
      "port": "8056"
    }
  ]
}

Wifi锁更新网络信息

  1. 请求链接: /wifiLock/updateNetwork

  2. 请求方式: POST

  3. 参数说明:

名称类型是否必需示例描述
lockIdStringY""锁ID
networkNameStringN连接的网络名称
wifiMacStringNWifi Mac地址
rssiIntNWifi信号强度
useStaticIpBooleanN是否使用静态IP
ipStringN静态IP地址
subnetMaskStringN子网掩码
defaultGatewayStringN默认网关
preferredDnsStringN首选DNS
alternateDnsStringN备用DNS
  1. 返回参数及示例:
参数类型描述
statusInt状态码
statusTextString提示信息
contentString返回数据
json
{
  "errorCode": 0,
  "description": "表示成功或是。",
  "errorMsg": "success or means yes"
}

获取Wifi锁信息

  1. 请求链接: /wifiLock/detail

  2. 请求方式: POST

  3. 参数说明:

名称类型是否必需示例描述
lockIdStringY""锁ID
  1. 返回参数及示例:
参数类型描述
statusInt状态码
statusTextString提示信息
contentString返回数据
json
{
  "networkName": "aaa",
  "ip": "233:234:444:567",
  "subnetMask": "255.255.255.0",
  "defaultGateway": "255.255.255.0",
  "wifiMac": "22:33:34:22",
  "rssiGrade": -99,
  "isOnline": 0,
  "powerSavingMode": 0,
  "preferredDns": "255.255.255.0",
  "alternateDns": "255.255.255.0"
}

鑫泓佳智能硬件通信协议文档