Struct rubble::beacon::BeaconScanner [−][src]
pub struct BeaconScanner<C: ScanCallback, F: AddressFilter> {
cb: C,
filter: ScanFilter<F>,
interval: Duration,
channel: AdvertisingChannel,
}
Expand description
A passive scanner for non-connectable beacon advertisements.
Fields
cb: C
filter: ScanFilter<F>
interval: Duration
channel: AdvertisingChannel
Implementations
Creates a BeaconScanner
with a custom device filter.
Configures the BeaconScanner
and returns a Cmd
to apply to the radio.
The next_update
field of the returned Cmd
specifies when to call timer_update
the next
time. The timer used for this does not have to be very accurate, it is only used to switch
to the next advertising channel after interval
elapses.
Updates the BeaconScanner
after the configured timer has fired.
This switches to the next advertising channel and will listen there.