GET api/askopoc/devices
GET info on devices connected to gateways with id 23, 24 and 26 in ASKO environment
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
List of AskoDeviceInfo objects
Collection of AskoDeviceInfoName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Name | string |
None. |
|
SensorType | AskoDeviceType |
None. |
|
LastValues | Collection of AskoDeviceLastValue |
None. |
|
Gateway | AskoAreaEnum |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "Name": "sample string 2", "SensorType": "Switch", "LastValues": [ { "ValueTime": "2025-05-19T19:39:10.9076776+00:00", "Value": 1.1, "Unit": "OpenOrClosed" }, { "ValueTime": "2025-05-19T19:39:10.9076776+00:00", "Value": 1.1, "Unit": "OpenOrClosed" } ], "Gateway": "N/A" }, { "Id": 1, "Name": "sample string 2", "SensorType": "Switch", "LastValues": [ { "ValueTime": "2025-05-19T19:39:10.9076776+00:00", "Value": 1.1, "Unit": "OpenOrClosed" }, { "ValueTime": "2025-05-19T19:39:10.9076776+00:00", "Value": 1.1, "Unit": "OpenOrClosed" } ], "Gateway": "N/A" } ]
text/html
Sample:
[{"Id":1,"Name":"sample string 2","SensorType":"Switch","LastValues":[{"ValueTime":"2025-05-19T19:39:10.9076776+00:00","Value":1.1,"Unit":"OpenOrClosed"},{"ValueTime":"2025-05-19T19:39:10.9076776+00:00","Value":1.1,"Unit":"OpenOrClosed"}],"Gateway":"N/A"},{"Id":1,"Name":"sample string 2","SensorType":"Switch","LastValues":[{"ValueTime":"2025-05-19T19:39:10.9076776+00:00","Value":1.1,"Unit":"OpenOrClosed"},{"ValueTime":"2025-05-19T19:39:10.9076776+00:00","Value":1.1,"Unit":"OpenOrClosed"}],"Gateway":"N/A"}]