Get Device State

Last Updated on : 2023-11-23 06:31:24download

Get the device state based on the device ID.

API address

GET: /v2.0/cloud/thing/{device_id}/state

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringpathtrueThe device ID.

Return parameter

Parameter nameTypeDescription
resultDeviceStateResThe returned result.

Description of result

Parameter nameTypeDescription
stateIntegerThe device status.

Request example

GET: /v2.0/cloud/thing/vdevo16*********15/state

Return example

    "tid": "b8a2b49abbbc11eda71e169efc83a172",
    "result": {
        "state": 0
    "t": 1678065474602,
    "success": true

Error code

For more information, see error code.

Limits on API Request Frequency

For more information, see Limits on API Request Frequency.