Hello,
I want to enable the scanning with name for the first scanning of the device and after connecting to that device its address will be saved. After disconnection with this connected device the for again connecting to the same device only i want to use the white list with the Address filter .
Is it possible to do so and if yes how?
Also for using white list filter i am getting parameter invalid error. I have following settings done
p_scan_param.active = 1;
p_scan_param.interval = NRF_BLE_SCAN_SCAN_INTERVAL;
p_scan_param.window = NRF_BLE_SCAN_SCAN_WINDOW;
p_scan_param.timeout = NRF_BLE_SCAN_SCAN_DURATION;
p_scan_param.filter_policy = BLE_GAP_SCAN_FP_WHITELIST;
p_scan_param.scan_phys = BLE_GAP_PHY_1MBPS;
Is there anything wrong?
I am getting error to sd_ble_gap_scan_start function with error ID 7(NRF_ERROR_INVALID_PARAM). I am not getting the reason behind this?