2022-05-05 04:11 AM
Hi,
I want to program a connectionless observer to scan events, but the hci_le_advertising_report_event() callback isn't called.
I have followed the steps of programming manual PM0269 for configure the modular configurations to work as Broadcaster + Observer only:
My enable scan with this configuration:
aci_gap_set_scan_configuration ( DUPLICATE_FILTER_DISABLED,
ADV_NO_WHITE_LIST_USE,
LE_1M_PHY_BIT,
PASSIVE_SCAN,
0x10,
0x10
);
hci_le_set_scan_enable(1,0);
I don't get any error, but the hci_le_advertising_report_event() isn't called. Supposedly, hci_le_set_event_mask( ) isn't necessary because the adv report event is enabled by default, but even calling this function, the callback isn't work.
I would like know what I'm doing worng.
Daniel
Solved! Go to Solution.
2022-05-05 05:11 AM
Hi @DLoza.2 ,
After you rcall to aci_gap_set_scan_configuration ( ..);
May you try to call aci_gap_start_procedure() instead of hci_le_set_scan_enable() ?
Thanks,
Sebastien.
2022-05-05 05:11 AM
Hi @DLoza.2 ,
After you rcall to aci_gap_set_scan_configuration ( ..);
May you try to call aci_gap_start_procedure() instead of hci_le_set_scan_enable() ?
Thanks,
Sebastien.
2022-05-06 12:08 AM
Hi again @Sebastien DENOUAL ,
Using aci_gap_start_procedure() instead of hci_le_set_scan_enable() works! I proved it before but It didn't work, maybe I configured it wrong.
Thanks Sebastien!
Daniel