NordicSemiconductor / Android-BLE-Library

A library that makes working with Bluetooth LE on Android a pleasure. Seriously.
BSD 3-Clause "New" or "Revised" License
1.99k stars 414 forks source link

How to obtain the real bond state? #491

Closed alanban closed 11 months ago

alanban commented 1 year ago

hi there i notice that bluetoothDevice.getBondState() returns whether the target device is bonded. but This does not mean that the target device also has such information.

so how do i ensure the real bond state, when the deivice is connected

philips77 commented 11 months ago

Hello, Sorry for the veeeery late response. I dno't think getting this information is possible. In the library we do have ensureBond(...) method which removes an existing bond information, if such exist, and bonds again.