Pigweed
 
Loading...
Searching...
No Matches
pw::bluetooth::low_energy::Peripheral2::ExtendedAdvertising Struct Reference

#include <peripheral2.h>

Classes

struct  Anonymous
 Anonymous advertisements do not include the address. More...
 

Public Attributes

std::variant< std::monostate, ScanResponse, ConnectionOptions, Anonymousconfiguration
 
std::optional< int8_t > tx_power
 
Phy primary_phy = Phy::k1Megabit
 
Phy secondary_phy = Phy::k1Megabit
 

Detailed Description

Advertise using the newer extended advertising Protocol Data Unit (PDU), which aren't supported by older devices.

Member Data Documentation

◆ configuration

std::variant<std::monostate, ScanResponse, ConnectionOptions, Anonymous> pw::bluetooth::low_energy::Peripheral2::ExtendedAdvertising::configuration

Extended advertisements can have a scan response, be connectable, be anonymous, or none of the above. See ScanResponse, ConnectionOptions, and Anonymous documentation.

◆ primary_phy

Phy pw::bluetooth::low_energy::Peripheral2::ExtendedAdvertising::primary_phy = Phy::k1Megabit

The primary physical layer configuration to advertise with. Can only be 1Megabit or LeCoded PHY. If the PHY is not supported, a kNotSupported error will be returned.

◆ secondary_phy

Phy pw::bluetooth::low_energy::Peripheral2::ExtendedAdvertising::secondary_phy = Phy::k1Megabit

The secondary physical layer configuration to advertise with. Can be any PHY. If the PHY is not supported, a kNotSupported error will be returned.

◆ tx_power

std::optional<int8_t> pw::bluetooth::low_energy::Peripheral2::ExtendedAdvertising::tx_power

The maximum power level to transmit with. Null indicates no preference. Range: -127 to +20 Units: dBm


The documentation for this struct was generated from the following file: