Get Data Point List

Last Updated on : 2023-06-20 14:54:12download

Query a list of data points supported by a specified device based on the device ID.

API address

GET: /v1.0/expand/devices/{device_id}/functions

Request parameter

Parameter name Type IN Required Description
device_id String uri true The ID of a Tuya device.

Return parameter

Parameter name Type Description
result List The returned result.

Description of result

Parameter name Type Description
function_code String The data point.
function_name String The name of a data point.

Request example

GET: /v1.0/expand/devices/6ce****/functions

Return example

{ "result": [ { "function_code": "tyabinmc7h", "function_name": "Face recognition" } ], "t": 1551851043862, "success": true }

Error code

For more information, see error code.