Hello,
I am using nRF52840 S140 V7.0.1. I am using ble_app_multirole_lesc example. I changed roles from “Central and Peripheral” to “Observer and Broadcater”.
My understanding about filters are:
1) In nrf_ble_scan_filters_enable() we can pass about which filters to be enabled. Once enabled only advertisement packtes which match with those fileters will be passed to application under BLE_GAP_EVT_ADV_REPORT. Remaining will be discarded at low level only.
2) If we set true in nrf_ble_scan_filters_enable(), then all filters passed should match. If false either of the filters passed can be matched. So if we pass “NRF_BLE_SCAN_NAME_FILTER | NRF_BLE_SCAN_UUID_FILTER” and if it is false then advertisement packet either with exact name or UUID will be passed to application.
With about understanding my queries are:
1) Even after enabling with NRF_BLE_SCAN_UUID_FILTER filter why I am seeing all advertisemnt packets under BLE_GAP_EVT_ADV_REPORT.
2) Even I kept m_target_periph_name[] = "NordicLESCApp" and passed NRF_BLE_SCAN_NAME_FILTER in nrf_ble_scan_filters_enable(). But still I am seeing all advertisement packets under BLE_GAP_EVT_ADV_REPORT.
3) Even I pased true in nrf_ble_scan_filters_enable(). But still I am seeing all advertisment packets under BLE_GAP_EVT_ADV_REPORT.
In all above 3 cases I am seeing NRF_BLE_SCAN_EVT_NOT_FOUND in scan_evt_handler().
Thanks & Regards
Vishnu Beema