Hi! I'm running into a strange issue.
I have inherited this project and it is poorly commented.
I have 2 peripherals and 1 central. The 2 peripherals are identical devices.
The central can pair to one at a time.
When I swap between devices, such as
* pair peripheral 1
* turn on peripheral 2
* Put peripheral 2 into pairing mode
* Power off peripheral 1
The central pairs to each successively as intended. I keep repeating this 4-5 times.
Eventually I get into a state where the central will not see the advertisements from a device, yet I can see them in NRF Connect, including custom data. It seems as if nrf_ble_scan_connect_with_target is not being called.
Sometimes, If I am in this state and turn on the other device, it will connect and I will see the advertisements from the device that the central was not seeing before (but NRF connect does).
I notice I do have NRF_BLE_SCAN_FILTER_ENABLE set to 1 and NRF_BLE_SCAN_NAME_CNT set to 2.
I would not expect this to fail after working so many times for each device, but I am grasping at straws.
These filters should behave the same the entire time and not just change after a few pairs/disconnects/new pairs.
My application is not keeping count and is always scanning. Could this be a known issue with the SDK?