Pair NB-IoT Device by Scanning QR Code

Last Updated on : 2023-06-20 15:21:28download

Pair an NB-IoT device by scanning the specified QR code.

API address

POST: /v1.0/iot-03/device-registration/qrcode-bind

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
qrcodeString trueThe code of a specified QR code. There is one QR code on the NB-IoT device. For more information, see the requirements of the NB-IoT device.
asset_idString trueThe ID of a specified asset.
time_zone_idString trueThe time zone.

Return parameter

Parameter nameTypeDescription
resultNBDeviceRes

Description of result

Parameter nameTypeDescription
device_idStringThe device ID.

Request example

POST: /v1.0/iot-03/device-registration/qrcode-bind
{
  "qrcode": "xx",
  "asset_id": "***",
  "time_zone_id": "***"
}

Return example

{
    "result": {
        "device_id": "vdevoxxxx"
    },
    "t": 1591257455025,
    "success": true
}

Error code

For more information, see error code.