Register a Bluetooth Device

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

Register a Bluetooth device.

API address

POST: /v1.0/iot-03/device-registration/single-bluetooth/actions/register

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
asset_idString trueThe asset ID.
uuidString trueThe device UUID.
auth_keyString trueThe value of authKey for Bluetooth pairing.
macString falseThe MAC address of the device.
product_idString trueThe product ID.
pvString trueThe protocol version number.

Return parameter

Parameter nameTypeDescription
resultString

Request example

POST: /v1.0/iot-03/device-registration/single-bluetooth/actions/register
{
  "uuid": "002008535ccf7f53****",
  "asset_id": "213",
  "auth_key": "xxxx",
  "mac": "5c:cf:7f:53:**:**",
  "product_id": "sfclyxhrfnys****",
  "pv": "xx"
}

Return example

{
    "result": {
        "auth_key": "******",
        "random": "******"
    },
    "t": 1591257455025,
    "success": true
}

Error code

For more information, see error code.