Parameters used during a scan. More...
#include <central2.h>
Public Attributes | |
pw::span< const ScanFilter > | filters |
uint16_t | interval |
uint16_t | window |
ScanType | scan_type |
Phy | phys = Phy::k1Megabit |
Parameters used during a scan.
pw::span<const ScanFilter> pw::bluetooth::low_energy::Central2::ScanOptions::filters |
List of filters for use during a scan. A peripheral that satisfies any of these filters will be reported. At least 1 filter must be specified. While not recommended, clients that require that all peripherals be reported can specify an empty filter. The span memory must only be valid until the call to Scan() ends.
uint16_t pw::bluetooth::low_energy::Central2::ScanOptions::interval |
The time interval between scans.
Phy pw::bluetooth::low_energy::Central2::ScanOptions::phys = Phy::k1Megabit |
A bitmask of the PHYs to scan with. Only the 1Megabit and LeCoded PHYs are supported.
ScanType pw::bluetooth::low_energy::Central2::ScanOptions::scan_type |
Specifies whether to send scan requests, and if so, what type of address to use in scan requests.
uint16_t pw::bluetooth::low_energy::Central2::ScanOptions::window |
The duration of the scan. The window must be less than or equal to the interval.