Generate an `authKey` for Bluetooth Device Pairing

Last Updated on : 2021-07-16 07:58:16download

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 name Type IN Required Description
uuid String true The device UUID.
asset_id String true The asset ID.

Return parameter

Parameter name Type Description
result DeviceAuthKeyRes

Description of result

Parameter name Type Description
random String The random number of pairing.
auth_key String The 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.