GET api/Sensor/GetGatewaySensorDataLatestTopN?GatewayID={GatewayID}&Type={Type}&N={N}
根据网关上温度湿度和空气质量获取其最新的N条数据
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| GatewayID |
网关ID |
string |
Required |
| Type |
数据类型 |
integer |
Required |
| N |
记录数量 |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
ApiResultOfListOfSensorData| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Code | integer |
None. |
|
| Result | Collection of SensorData |
None. |
|
| Error | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Code": 2,
"Result": [
{
"id": 1,
"UID": "sample string 2",
"Value": "sample string 3",
"CreateTime": "sample string 4",
"UserID": "sample string 5",
"Type": 1
},
{
"id": 1,
"UID": "sample string 2",
"Value": "sample string 3",
"CreateTime": "sample string 4",
"UserID": "sample string 5",
"Type": 1
}
],
"Error": "sample string 3"
}