Struct esp32_nimble::BLEAdvertisementData
source · pub struct BLEAdvertisementData { /* private fields */ }
Implementations§
source§impl BLEAdvertisementData
impl BLEAdvertisementData
pub fn new() -> Self
pub fn add_service_uuid(&mut self, uuid: BleUuid) -> &mut Self
pub fn service_data(&mut self, uuid: BleUuid, data: &[u8])
sourcepub fn appearance(&mut self, appearance: u16) -> &mut Self
pub fn appearance(&mut self, appearance: u16) -> &mut Self
Set the device appearance in the advertising data.
sourcepub fn add_tx_power(&mut self) -> &mut Self
pub fn add_tx_power(&mut self) -> &mut Self
Add the transmission power level to the advertisement packet.