Check whether a device is frozen

Last Updated on : 2023-06-20 15:17:20download

Check whether a device is in a frozen status.

API address

GET: /v1.0/iot-03/devices/{device_id}/freeze-state

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueDevice ID

Return parameter

Parameter nameTypeDescription
resultDeviceFreezeStateRes

Description of result

Parameter nameTypeDescription
stateIntegerThe device status:
  • 0: normal
  • 1: frozen

Request example

GET: /v1.0/iot-03/devices/xxxxId/freeze-state

Return example

{
    "result": {
        "state": 1
    },
    "t": 1591872112140,
    "success": true
}

Error code

For more information, see error code.