Last Updated on : 2023-06-15 04:48:12
Get the device information by the device ID.
GET: /v1.1/iot-03/devices/{device_id}
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| device_id | String | uri | true | The device ID. |
| Parameter name | Type | Description |
|---|---|---|
| result | BaseDeviceRes |
Description of result
| Parameter name | Type | Description |
|---|---|---|
| id | String | The device ID. |
| gateway_id | String | The gateway ID. The value is empty for non-gateway sub-devices. |
| node_id | String | The node ID. The value is empty for non-gateway sub-devices. |
| uuid | String | The universally unique identifier (UUID) of a specified device. |
| category | String | The category of a specified product. |
| category_name | String | The name of a specified category. |
| name | String | The device name. |
| product_id | String | The product ID. |
| product_name | String | The product name. |
| local_key | String | The secret key. |
| sub | Boolean | Indicates whether a device is a sub-device. |
| asset_id | String | The asset ID. |
| owner_id | String | The ID of a home. |
| ip | String | The IP address of a specified device |
| lon | String | The longitude of a specified device. |
| lat | String | The latitude of a specified device. |
| model | String | The product model. |
| time_zone | String | The time zone where the device is located. |
| active_time | Long | The time when the device is activated. |
| update_time | Long | The time when it is updated. |
| create_time | Long | The time when the device is paired for the first time. |
| online | Boolean | The online status of a specified device. |
| icon | String | The icon of a specified device. |
GET: /v1.1/iot-03/devices/xxxxxx1
{
"result": {
"result": {
"sub": false,
"category_name": "Light Source",
"create_time": 1567395627,
"local_key": "8ab649951d59****",
"owner_id": "31256829",
"ip": "124.90.**.***",
"icon": "smart/icon/1526276264k8q8l44swr2ennf6zx5u92j4i_0.png",
"lon": "120.0638",
"time_zone": "+08:00",
"product_name": "Light",
"uuid": "38042025cc50e325****",
"gateway_id": "",
"active_time": 1620299529,
"update_time": 1635941286,
"product_id": "ylr9R01cMWnM****",
"name": "Light",
"online": true,
"model": "LE7",
"id": "38042025cc50e325****",
"category": "dj",
"lat": "30.3027"
},
"t": 1635941588278,
"success": true
},
"t": 1635941588278,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback