fun pairAsync(: BluetoothDeviceMacAddress, : ((Unit) -> Unit)? = null): Task<Unit>
Pairs the bluetooth device with the given address asynchronously. Will unpair first if previous pair was not successful. Will remember that the device was paired by this application.
BluetoothException
- if it didn't work out
Return
Task to wait for completion