这是本文档旧的修订版!
功能:获取单一网关的信息
请求方式:GET
请求路径:{projectServerUrl}/api/1.0/project/device/gateway/get
请求参数:
参数 | 必填\选填 | 类型 | 描述 |
gatewayName | 必填 | String | 网关名称 |
返回参数:
参数 | 名称 | 类型 | 备注 |
code | 返回码 | string |
|
message | 提示语 | string |
|
data | 数据 | object |
|
–gatewayName | 网关名称 | String |
|
– gatewayId | 网关编号 | String |
|
–connectState | 连接状态 | boolean |
|
–lastConnectTime | 上次连接时间 | Long | 毫秒时间戳 |
–longitude | 经度 | number |
|
–latitude | 纬度 | number |
示例地址:http://xf.tandatech.com:8081/ThreePlaceREST/api/1.0/project/device/gateway/get
示例结果:
{
"code": "000000",
"message": "获取成功",
"data": {
"gatewayName": "TX3252_20180412zxy001",
"connectState": true,
"lastConnectTime": 1524895526000,
"createTime": 1524895526000,
"longitude": 222.22,
"latitude": 232.222
}
}