这是本文档旧的修订版!
功能:获取项目中的所有网关及连接情况
请求方式:GET
请求路径:{projectServerUrl}/api/1.0/project/device/gateway/getList
请求参数:无需参数
返回参数:
参数 | 名称 | 类型 | 备注 |
code | 返回码 | string |
|
message | 提示语 | string |
|
data | 数据 | array<object> |
|
–gatewayName | 网关名称 | String |
|
– gatewayId | 网关编号 | String |
|
–connectState | 连接状态 | boolean |
|
–lastConnectTime | 上次连接时间 | Long | 毫秒时间戳 |
–longitude | 经度 | number |
|
–latitude | 纬度 | number |
示例:
示例地址:http://xf.tandatech.com:1080/ThreePlaceREST/api/1.0/project/device/gateway/getList
示例结果:
{
"code": "000000",
"message": "获取成功",
"data": [
{
"gatewayName": "TX3252_20180412zxy001",
"connectState": true,
"lastConnectTime": 1524895526000,
"longitude ": 222.22,
"latitude ": 232.222
}
]
}