I am using the nRF5_SDK_17.0.2 "examples\ble_central\ble_app_blinky_c" example to start with my device.
It works using "init_scan.connect_if_match = true"
However, my project need to control when the device should be connected.
So I have change it to "init_scan.connect_if_match = false".
Which API should be called to connect to the device ?
void scan_evt_handler(scan_evt_t const * p_scan_evt)
{
switch(p_scan_evt->scan_evt_id)
{
case NRF_BLE_SCAN_EVT_FILTER_MATCH:
// Connect HERE when certain condition met
break;
}