查询配网结果

更新时间:2023-11-23 06:53:59下载pdf

本文介绍查询配网结果的 API。

接口描述

根据配网令牌,查询配网结果。

接口地址

GET: /v2.0/cloud/thing/active/token/{token}

请求参数

参数名类型参数位置是否必填说明
tokenStringpathtrue配网令牌

返回参数

参数名类型说明
resultDeviceActiveRes接口返回的数据集
successBoolean操作是否成功。
  • true:操作成功。
  • false:操作失败。
tLong时间戳。
tidString链路 ID。

result 说明

参数名类型说明
successDevicesList配网成功设备列表
errorDevicesList配网失败设备列表

errorDevices 说明

参数名类型说明
idString设备 ID
nameString设备名称
errorCodeString失败错误码
errorMsgString失败描述

successDevices 说明

参数名类型说明
idString设备 ID
nameString设备名称
productIdString产品 ID
lonString经度
latString纬度
ipString设备配网 IP 地址
onlineBoolean设备在线状态
uuidString设备 UUID

请求示例

GET: /v2.0/cloud/thing/active/token/AG******

返回示例

{
    "tid": "b8a2b49abbbc11eda71e169efc83a172",
    "result": {
        "successDevices": [
            {
                "productId": "ngarn****",
                "ip": "0.0.0.0",
                "lon": "0",
                "uuid": "drdz05cce7**********",
                "name": "设备名称",
                "online": true,
                "id": "vdevo163815529739***",
                "lat": "0"
            }
        ],
        "errorDevices": [
            {
                "errorCode": "2001",
                "errorMsg": "device is offline",
                "name": "设备名称",
                "id": "vdevo163815529739***"
            }
        ]
    },
    "t": 1678065474602,
    "success": true
}

错误码

参考 错误码