1.URL
http://124.223.60.234:8080/system/asset/report/querySlaveMachineDataList
or Server in US
https://cloud.aovx.com/prod/system/asset/report/querySlaveMachineDataList
2.Request parameters
2.1.Parameters example
Add token in Headers: After successful login verification, the corresponding tokenId in user login response data.
2.2.Parameters example
{
"terminalId":"9301476EF79340999772DCB315C53C93",
"slaveNum":"",
"startTime":"2023-06-02 16:00:00",
"endTime":"2023-06-03 16:00:00",
"pageSize":20,
"pageNum":1
}
2.3.Parameters description
Field | Data type | description | required |
---|---|---|---|
terminalId | String | Unique identifier of the device assigned by the system | Y |
slaveNum | String | slave num,such as: b3:e4:51:cb:79:e1 | N |
startTime | String | start time(UTC) | Y |
endTime | String | end time(UTC) | Y |
pageNum | int | Paging query for current page number, default 1 | Y |
pageSize | int | Paging query displays the number of items per page, default 20 | Y |
3.Response content
3.1.Response example
{
"code": 200,
"message": "Operation succeeded",
"data": {
"total": 2,
"size": 1,
"data": [
{
"terminalId": "79EC79FEE78D4E7A95148DF5DDD86BA7",
"terminalNum": "671070635709",
"slaveNum": "b3:e4:51:cb:79:e1",
"battery": 30,
"voltage": 0.0,
"rssi": -19,
"locationType": 0,
"lat": 0.0,
"lon": 0.0,
"dateTime": "2024-06-11 12:51:45",
"dateTimestamp": 1718110305000,
"gnssTime": "2024-06-11 12:51:45",
"gnssTimestamp": 1718110305000,
"recvTime": "2024-06-11 12:51:48",
"recvTimestamp": 1718110308829,
"alarmTypeList": [],
"eventTypeList": [],
"statusMapJson": "{\"runStatus\":1}",
"expandMapJson": null,
"msgFlowId": null
},
{
"terminalId": "79EC79FEE78D4E7A95148DF5DDD86BA7",
"terminalNum": "671070635709",
"slaveNum": "6e:32:55:e4:f5:c6",
"battery": 83,
"voltage": 0.0,
"rssi": -34,
"locationType": 0,
"lat": 0.0,
"lon": 0.0,
"dateTime": "2024-06-11 12:51:45",
"dateTimestamp": 1718110305000,
"gnssTime": "2024-06-11 12:51:45",
"gnssTimestamp": 1718110305000,
"recvTime": "2024-06-11 12:51:48",
"recvTimestamp": 1718110308829,
"alarmTypeList": [],
"eventTypeList": [],
"statusMapJson": "{\"runStatus\":1}",
"expandMapJson": null,
"msgFlowId": null
}
]
}
}
3.2.Response description
Field | Data type | description |
---|---|---|
code | int | Return code |
message | String | Return message |
data | object | Response data |
data
Field | Data type | description |
---|---|---|
total | String | Total number of paged queries |
size | String | How many pages are there for pagination query |
data | object | Result set per page |
data
字段 | 类型 | 说明 |
---|---|---|
terminalId | String | Terminal Unique Identification |
terminalNum | String | Terminal Num |
slaveNum | String | slave id |
battery | int | battery % |
voltage | double | voltage V |
rssi | int | RSSI |
locationType | int | Positioning methods (0: no positioning; 1: GPS positioning; 2: base station positioning; 3: positioning maintenance; 4: WIFI positioning) |
lat | double | latitude(WGS84) |
lon | double | longitude(WGS84) |
dateTime | String | slave report time(UTC) |
dateTimestamp | long | Slave report time UNIX timestamp |
gnssTime | String | Host data packet time(UTC) |
gnssTimestamp | long | Host Data Package UNIX Timestamp |
recvTime | String | Server receiving time(UTC) |
recvTimestamp | long | Server receives UNIX timestamps |
alarmTypeList | List | Alarm set |
eventTypeList | List | Event set |
statusMapJson | String | Set of slave states |
expandInfo | String | From machine expansion information |
statusMapJson
This is a Map, which may have the following status. If this status is not included in the data packet, it means that the device does not support it. The interface will be presented according to the actual content returned;
runStatus: Motion state (0: stationary; 1: moving)
expandInfo说明
This is also dynamic. If this value is not present, it indicates that the device does not support it. Possible information is as follows:
Sensor information: Sensor is a map that may contain the following information
temperature: temperature
humidity: humidity
accelerometer: acceleration
作者:admin 创建时间:2024-06-11 20:58
最后编辑:admin 更新时间:2024-12-27 19:48
最后编辑:admin 更新时间:2024-12-27 19:48