Last Updated on : 2023-06-15 05:40:50
Based on the asset ID and the indicator code, query the latest real-time data of various environmental indicators under the specified asset.
GET: /v1.0/iot-03/assets/{asset_id}/environment-status
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
asset_id | String | uri | true | The ID of the asset. |
codes | String | query | false | The code of a specified indicator. Valid values:
|
Parameter name | Type | Description |
---|---|---|
result | AssetEnvironmentIndicatorRes |
Description of result
Parameter name | Type | Description |
---|---|---|
asset_name | String | The name of the asset. |
codes | List | The list of indicator codes. |
Description of codes
Parameter name | Type | Description |
---|---|---|
code | String | The code of a specified indicator. |
avg | String | The average value of the indicators. |
max | String | The maximum value of the indicators. |
min | String | The minimum value of the indicators. |
unit | String | The unit of the indicator values. |
GET: /v1.0/iot-03/assets/189382697123****/environment-status?codes=lux_value
{
"result": {
"codes": [
{
"code": "lux_value",
"max": "36",
"unit": "",
"avg": "19.00",
"min": "2"
}
],
"asset_name": "Office 1"
},
"t": 1626838069297,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback