Hello,
I'm trying to use `sd_ble_gap_connect` to connect to a peer I discovered using `nrf_ble_scan`.
Hello,
I'm trying to use `sd_ble_gap_connect` to connect to a peer I discovered using `nrf_ble_scan`.
These are the values I have right now. I did not use nrf_ble_scan_connect_with_target as it seems to do exactly what I'm doing here. But I'm absolutely using the scan functionality, just not the connect one.
Thank you, these values should be okay, although rather low in my opinion, what happens if you set the scan interval and window to the same value? That should make sure that the device scans 100% of the time, as the central will scan for SCAN_WINDOW time, every SCAN_INTERVAL interval.
Next, what connection parameters are you using (min/max_conn_interval, slave_latency, conn_sup_timeout)? The valid parameters here should be stated in BLE_GAP_CP_LIMITS.
Best regards,
Simon
Hello,
had the same issue. For me setting SCAN_WINDOW and SCAN_INTERVAL to the same value, e.g. (160 * UNIT_0_625_MS), made it work. With Window (80*...) and Interval (160*...) I got the same invalid param error as fatih with s132 V7.2.0.
So thanks Simonr for pointing in the right direction.
Theo