I've been trying to track down a bug where a couple of my Central test devices, a Nexus 5 and 7 (Android 6.1), won't send a connection request to a peripheral they're bonded to. The problem disappears when I remove the use of BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE in the peripheral's firmware.
Is there a Nordic example that uses a Random Private Resolvable Address? I'd like to make sure I'm not somehow using it incorrectly.
If anyone would like to try to replicate the problem:
- Get a Nexus device with nRF Connect (or somesuch)
- Get a peripheral that uses a Random Private Resolvable Address
- Connect and bond the devices
- Reset or disconnect the peripheral such that it uses a new (Resolvable) address
- Try to reconnect
- You should see the app hang and fail on the connection command, without seeing the event on the peripheral, or a corresponding packet with a sniffer