Generate an `authKey` for Bluetooth Device Pairing

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

Generate a value of authKey for Bluetooth device pairing.

API address

POST: /v1.0/iot-03/device-registration/single-bluetooth/auth-key

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
uuidString trueThe device UUID.
asset_idString trueThe asset ID.

Return parameter

Parameter nameTypeDescription
resultDeviceAuthKeyRes

Description of result

Parameter nameTypeDescription
randomStringThe random number of pairing.
auth_keyStringThe value of authKey for pairing.

Request example

POST: /v1.0/iot-03/device-registration/single-bluetooth/auth-key
{
  "uuid": "002008535ccf7f53****",
  "asset_id": "1373903144639082***"
}

Return example

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

Error code

For more information, see error code.