Get Device State

Last Updated on : 2024-09-26 01:57:05download

Get the device state based on the device ID.

API address

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

Request parameter

Parameter name Type IN Required Description
device_id String path true The device ID.

Return parameter

Parameter name Type Description
result DeviceStateRes The returned result.

Description of result

Parameter name Type Description
state Integer The device state.
  • 1: The device is frozen.
  • 0: The device is unfrozen.

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.