Hello,
I am in a project using nRF52 board where I develop and Android app.
The application is using Android stock BLuetoothLeScanner to scan for devices. After that the app is using the BluetoothDevice instance returned by the BluetoothLeScanner to connect an then perform some reading and writing requests. Since the read and write require security then device implemented the just-works bonding so the application is bonding immediately. So the app can successfully scan, connect, bond, read and write.
The app is also implemented in that way that when performing a BLE scan for a new device, I am filtering out all devices which are already connected using the bluetooth address or the already connected devices.
My colleague from FW side just added recently the following configuration on the FW side: CONFIG_BT_PRIVACY=y.
After this change, the bluetooth address keeps changing so whenever the application is performing a BLE scan for a new device, the currently connected devices are discovered since they have a different bluetooth address.
Is there any way for the Android app to resolve the resolvable private address when the FW side is using CONFIG_BT_PRIVACY=y configuration?
If not, is there any other way I can make this work?
I would like to mention also that, in the Android application, I am using Android-BLE-Library developed by Nordic (github.com/.../Android-BLE-Library).
Thank you!