acceptPairing

abstract suspend fun acceptPairing(deviceAddress: BluetoothDeviceAddress, pairingDetails: BluetoothPairingDetails): Boolean

Provides the currently running pairing process with the required pairingDetails, so it can be finalised successfully.

Return

true when the pairing has been confirmed successfully, 'false' otherwise.

Parameters

deviceAddress

The address of the device.

pairingDetails

The pairing information which includes the passkey and the pairing variant.