Query Signal Strength

Last Updated on : 2024-07-01 06:57:40

Based on the device ID, query the signal strength of the specified Wi-Fi device in the last ten minutes and the specified Zigbee device in the last two minutes.

API address

GET: /v2.0/cloud/thing/{device_id}/{device_type}/signal

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringpathtrueThe device ID.
device_typeStringpathtrueThe type of device. Valid values:
  • WiFi: Wi-Fi device
  • zigbee: Zigbee device

Return parameter

Parameter nameTypeDescription
signalIntegerThe signal level of the device.
eventTimeLongThe time when an event occurred.
indicatorTypeStringThe indicator type, including LQI and RSSI.
signalLevelStringThe signal strength.

Request example

GET: /v2.0/cloud/thing/***id/wifi/signal

Return example

{
    "tid": "b8a2b49abbbc11eda71e169efc83a172",
    "result": {
        "signalLevel": "Excellent",
        "indicatorType": "RSSI",
        "eventTime": "1678065474602",
        "signal": "-40"
    },
    "t": 1678065474602,
    "success": true
}

Error code

For more information, see error code.