Query Protocols of Multiple Devices

Last Updated on : 2023-06-20 15:22:10download

Query the communication protocols supported by multiple devices.

API address

GET: /v1.0/iot-03/devices/protocol

Request parameter

Parameter nameTypeINRequiredDescription
device_idsStringquerytrueThe list of device IDs. Maximum value: 20 each time.

Return parameter

Parameter nameTypeDescription
resultListThe returned result.

Description of result

Parameter nameTypeDescription
idStringThe device ID.
protocolStringThe protocol. Valid values: Wi-Fi, Zigbee, and Bluetooth mesh.
  • Wi-Fi: Wi-Fi communication.
  • Zigbee: two-way wireless communication.
  • Bluetooth mesh: adopts mesh protocol on the basis of traditional Bluetooth.

Request example

GET: /v1.0/iot-03/devices/protocol?device_ids=vdevo1629968086****,vdevo162214508****

Return example

{
    "result": [
        {
            "protocol": "Wi-Fi",
            "id": "vdevo1629968086****"
        }
    ],
    "t": 1630378559991,
    "success": true
}

Error code

For more information, see error code.