pub struct AdvertisingParams {Show 17 fields
pub connectable: bool,
pub scannable: bool,
pub legacy: Option<bool>,
pub directed: Option<Address>,
pub high_duty: bool,
pub anonymous: bool,
pub include_tx_power: bool,
pub interval_min_ms: u32,
pub interval_max_ms: u32,
pub primary_phy: Phy,
pub secondary_phy: Phy,
pub tx_power: Option<i8>,
pub sid: u8,
pub duration_ms: Option<u32>,
pub max_events: Option<u8>,
pub filter_accept_list: bool,
pub scan_request_notifications: bool,
}Expand description
How a set advertises.
Fields§
§connectable: boolAccept connections.
scannable: boolAnswer scan requests with the scan response.
legacy: Option<bool>Use legacy PDUs (seen by every scanner, 31 octets of data). None
chooses: legacy when the data fits and nothing needs Bluetooth 5.
directed: Option<Address>Advertise directed at one device.
high_duty: boolHigh duty cycle directed advertising (lasts 1.28 s at most).
anonymous: boolOmit our address (extended, non-connectable only).
include_tx_power: boolPut the TX power in the extended header.
interval_min_ms: u32Minimum interval, ms (20 or more).
interval_max_ms: u32Maximum interval, ms.
primary_phy: PhyPrimary PHY: le1m, or le_coded for long range.
secondary_phy: PhySecondary PHY (extended).
tx_power: Option<i8>TX power to ask for, dBm; None lets the controller choose.
sid: u8Advertising set id (0 to 15), as scanners see it.
duration_ms: Option<u32>Stop after this long, ms.
max_events: Option<u8>Stop after this many events (extended).
filter_accept_list: boolOnly answer scan and connection requests from the filter accept list.
scan_request_notifications: boolReport scan requests as crate::HostEvent::ScanRequest.