createBond

suspend fun createBond()

Initiates bonding with the peripheral.

Throws

If bonding failed.

If bonding could not be started.

If BLUETOOTH_CONNECT permission is denied.