用户工具

站点工具


wiki:v_interface_single_gatewayinfo

这是本文档旧的修订版!


获取单网关信息

功能:获取单一网关的信息

请求方式GET

请求路径:{projectServerUrl}/api/1.0/project/device/gateway/get

请求参数:

参数

必填\选填

类型

描述

gatewayName

必填

String

网关名称

返回参数:

参数

名称

类型

备注

code

返回码

string

 

message

提示语

string

 

data

数据

array<object>

 

gatewayName

网关名称

String

 

gatewayId

网关编号

String

 

connectState

连接状态

boolean

 

–lastConnectTime

上次连接时间

Long

毫秒时间戳

–longitude

经度

number

 

–latitude

纬度

number

 

–address

地址

String

 

originalSignalStrength

原始信号强度

Integer

设备上传信号强度

signalStrength

用户信号强度

Integer

处理之后1-5信号强度



示例:

示例地址:https://xf.tandatech.com:4433/thirdPartyApi/ThreePlaceREST/api/1.0/project/device/gateway/get

示例结果:

{
    "code": "000000",
    "message": "成功获取网关信息信息!",
    "data": {
        "gatewayName": "01_NB_202009231743078",
        "gatewayId": "151f417d-c647-4c6f-8819-a9ade8053c10",
        "connectState": true,
        "lastConnectTime": 1600929892470,
        "longitude": 113,
        "latitude": 38,
        "address": "望京大厦",
        "originalSignalStrength": 0,
        "signalStrength": 0
    }
}

wiki/v_interface_single_gatewayinfo.1601022849.txt.gz · 最后更改: 2020/09/25 08:34 由 admin