Get Real-Time Data

Last Updated on : 2023-06-15 05:30:40

Send a command of getting real-time data to a circuit breaker. On receiving the command, the circuit breaker will report the real-time data.

API address

GET: /v1.0/electric-energy/{device_id}/actions/realtime-data

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe ID of a Tuya device.

Return parameter

Parameter nameTypeDescription
resultCmdIssueResultResponseThe returned result.

Description of result

Parameter nameTypeDescription
snStringThe ID of a specified command record.

Request example

GET: /v1.0/electric-energy/read/6ce****/actions/realtime-data

Return example

{
    "result": {
        "sn": "133****"
    },
    "t": 1561456817168,
    "success": true
}

Error code

For more information, see error code.