Hi,
I'm using nRF52840 as a central and nRF52832 as a peripheral device. I have disabled automatic connect requests in central when a required peripheral device is found.
nrf_ble_scan_init.connect_if_match = false;
I have to verify certain data transferred in the advertisement packet and then decide if the peripheral device shall be connected or not.
I manually make a connection request using the function sd_ble_gap_connect()
There can be more than one central device receiving the advertisement packets and want to connect to a peripheral device at the same time.
For example, let us consider central devices A and B have sent a connection request to peripheral P and A gets connected to P.
But the device B is stuck forever and not able to perform any scanning even after restarting the scan (using nrf_ble_scan_stop() and nrf_ble_scan_start())
Is there a timeout parameter that I can set and inform SD that wait for maximum time to establish a connection to a peripheral device and upon timeout resume scanning?
More information:
Central device: nRF52840, SDK16
Peripheral device: nRF52832, SDK16