Last Updated on : 2023-06-15 05:52:55
Query the list of energy-consuming devices in the space.
GET: /v1.0/iot-03/energy/{energy_type}/space/devices
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
energy_type | String | uri | true | The energy type. Set the value to electricity . |
space_id | String | query | false | The ID of a specified space. |
page_no | Integer | query | true | The current page number. |
page_size | Integer | query | true | The number of items returned on each page. Valid values: 1 to 200. |
Parameter name | Type | Description |
---|---|---|
result | PageRsp |
Description of result
Parameter name | Type | Description |
---|---|---|
total | Long | The total number of entries. |
datas | List |
The device list. |
has_more | Boolean | Specifies whether to return the next page. |
GET: /v1.0/iot-03/energy/electricity/space/devices
{
"devices": [
"xxx"
]
}
{
"result": {
"datas": [
"xxx"
],
"total": 1,
"has_more": false
},
"t": 1632464352417,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback