Get Device State

Last Updated on : 2024-09-26 02:09:27download

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 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.