Before my 52840 acting as central is connecting, it scans with the following params list:
static ble_gap_scan_params_t const m_scan_params =
{
#ifdef BOARD_PCA10056
.extended = 1,
.active = 1,
.interval = SCAN_INTERVAL,
.window = SCAN_WINDOW,
.filter_policy = BLE_GAP_SCAN_FP_ACCEPT_ALL,
.scan_phys = BLE_GAP_PHY_CODED,
.timeout = SCAN_DURATION,
};
But if there are other BLE devices in the area which are transmitting at short interval, I have problems to connect to my pre-defined peripheral (with certain MACID).
So, I want to add filter by name (since all my peripherals share the same name "Nordic_Device")
How can I add filter by name to the m_scan_params?