Hi,
I am running the following setup, both on nRF52840-DK:
1. Central : Always scans , when he finds devices with NUS service -> Initiate a connection
2. Peripheral : advertise with "BLE_GAP_ADV_FP_FILTER_CONNREQ" , using a whitelist.
So, if a Central that is not in the Peripheral whitelist tries to connect - connect will not happen . otherwise - NUS is connected and working. so far so good !
Now - on the Central side :
1. when a central that is not on the peripheral's whitelist tries to connect ( using sd_ble_gap_connect) - I do not get "BLE_EVT_GAP_CONNECTED" event which is ok. BUT - I do not get any other indication that the connection is rejected . ( not even TIMEOUT or TERMINATED ) . I'd like to be able to tell when my connection has been rejected
2. After the above event, scanning does not work any more .
I'd like to get your help understanding how to fix the above
Thanks,
Ran