ble_gap_evt_adv_report_t beacons

Hi,

In one of my application based on SDK 15.2, I am using nRF52832 as a central scanning  device for 128 BLE beacons

My question is how often is the ble_gap_evt_adv_report_t data instance updated if I set the timeout value as BLE_GAP_SCAN_TIMEOUT_UNLIMITED

My understanding here is setting the timeout to BLE_GAP_SCAN_TIMEOUT_UNLIMITED  allows me for a continuous scan forever , but I need to know how is the gap advertisement report updated.

Thanks

Abhi

Parents Reply Children
  • Hi, 

    If you set the timeout to a specific number , let says 10 seconds. If there isn't any advertising packet received in such 10 seconds you will receive an event BLE_GAP_EVT_TIMEOUT and scan will stop. 

    If you set the timeout to BLE_GAP_SCAN_TIMEOUT_UNLIMITED , you will not receive BLE_GAP_EVT_TIMEOUT and scanning will not stop if there isn't any advertising packet received. 

Related