用户工具

站点工具


wiki:v_interface_all_gateway_old

返回

获取网关列表信息

功能:获取项目中的所有网关及连接情况

请求方式GET

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

请求参数:

参数

是否必填

名称

类型

备注

pageNum

当前页码

Integer

默认1

pageSize

每页显示条数

Integer

默认全部


返回参数:

参数

名称

类型

备注

code

返回码

string

 

message

提示语

string

 

data

数据

array<object>

 

-gatewayName

网关名称

String

 

-gatewayId

网关编号

String

 

-connectState

连接状态

boolean

 

-lastConnectTime

上次连接时间

Long

毫秒时间戳

-longitude

经度

number

 

-latitude

纬度

number

 

-address

地址

String

 

-orginalSignalStrength

原始信号强度

Integer

设备上传信号强度

-signalStrength

用户信号强度

Integer

处理之后1-5信号强度



示例:

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

示例结果:

{
    "code": "000000",
    "message": "成功获取单位下网关列表信息!",
    "data": [
        {
            "gatewayName": "01_NB_202009241724078",
            "gatewayId": "a36dbd39-73ba-4d25-bc30-4e12e386e418",
            "connectState": false,
            "lastConnectTime": 0,
            "longitude": 113,
            "latitude": 38,
            "address": "国展展台",
            "originalSignalStrength": 0,
            "signalStrength": 0
        },
        {
            "gatewayName": "01_NB_202009231743078",
            "gatewayId": "151f417d-c647-4c6f-8819-a9ade8053c10",
            "connectState": true,
            "lastConnectTime": 1600929892470,
            "longitude": 113,
            "latitude": 38,
            "address": "qw",
            "originalSignalStrength": 0,
            "signalStrength": 0
        }]

}

wiki/v_interface_all_gateway_old.txt · 最后更改: 2020/11/14 05:18 由 admin