1
0
mirror of https://github.com/bluekitchen/btstack.git synced 2025-03-24 22:43:35 +00:00

examples: enable Active Scanning in gap_le_advertisements

This commit is contained in:
Matthias Ringwald 2017-03-08 17:22:55 +01:00
parent 429122cc10
commit bfb465b059

@ -68,6 +68,9 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
static void gap_le_advertisements_setup(void){
hci_event_callback_registration.callback = &packet_handler;
hci_add_event_handler(&hci_event_callback_registration);
// Active scanning, 100% (scan interval = scan window)
gap_set_scan_parameters(1,48,48);
}
/* LISTING_END */