Query Linked Heatmap Analytics Devices

Last Updated on : 2023-06-21 07:13:07download

Query the list of heatmap analytics devices that are linked with a specified asset.

API address

GET: /v1.0/iot-03/hotspots/{asset_id}/devices

Request parameter

Parameter name Type IN Required Description
asset_id String uri true The ID of a specified store.
device_id String query false The device number.
page_no Integer query true The page number.
page_size Integer query true The number of items returned on each page.

Return parameter

Parameter name Type Description
result Page The returned results on pages.

Description of result

Parameter name Type Description
total Long The total number of items.
list List The list of heatmap analytics devices.
has_more Boolean Indicates whether additional data is available.

Description of list

Parameter name Type Description
device_id String The device ID.
name String The device name.
online Boolean Indicates the online status of a specified device. Valid values:
  • true: The device is online.
  • false: The device is offline.

Request example

GET: /v1.0/iot-03/hotspots/abcdxxxx/devices?page_no=1&page_size=10

Return example

{ "result": { "list": [ { "device_id": "abcd****", "name": "Device 1" }, { "device_id": "dddd****", "name": "Device 2" } ], "total": 2, "has_more": false }, "t": 111111111, "success": true }

Error code

For more information, see error code.