#include <peripheral2.h>
Classes | |
struct | Anonymous |
Anonymous advertisements do not include the address. More... | |
Public Attributes | |
std::variant< std::monostate, ScanResponse, ConnectionOptions, Anonymous > | configuration |
std::optional< int8_t > | tx_power |
Phy | primary_phy = Phy::k1Megabit |
Phy | secondary_phy = Phy::k1Megabit |
Advertise using the newer extended advertising Protocol Data Unit (PDU), which aren't supported by older devices.
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.
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.
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.
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