ESPHome  2022.9.1
Public Member Functions | Protected Attributes
esphome::esp32_ble::BLEAdvertising Class Reference

#include <ble_advertising.h>

Public Member Functions

 BLEAdvertising ()
 
void add_service_uuid (ESPBTUUID uuid)
 
void remove_service_uuid (ESPBTUUID uuid)
 
void set_scan_response (bool scan_response)
 
void set_min_preferred_interval (uint16_t interval)
 
void set_manufacturer_data (uint8_t *data, uint16_t size)
 
void start ()
 
void stop ()
 

Protected Attributes

bool scan_response_
 
esp_ble_adv_data_t advertising_data_
 
esp_ble_adv_data_t scan_response_data_
 
esp_ble_adv_params_t advertising_params_
 
std::vector< ESPBTUUIDadvertising_uuids_
 

Detailed Description

Definition at line 15 of file ble_advertising.h.

Constructor & Destructor Documentation

◆ BLEAdvertising()

esphome::esp32_ble::BLEAdvertising::BLEAdvertising ( )

Definition at line 15 of file ble_advertising.cpp.

Member Function Documentation

◆ add_service_uuid()

void esphome::esp32_ble::BLEAdvertising::add_service_uuid ( ESPBTUUID  uuid)

Definition at line 39 of file ble_advertising.cpp.

◆ remove_service_uuid()

void esphome::esp32_ble::BLEAdvertising::remove_service_uuid ( ESPBTUUID  uuid)

Definition at line 40 of file ble_advertising.cpp.

◆ set_manufacturer_data()

void esphome::esp32_ble::BLEAdvertising::set_manufacturer_data ( uint8_t *  data,
uint16_t  size 
)

Definition at line 45 of file ble_advertising.cpp.

◆ set_min_preferred_interval()

void esphome::esp32_ble::BLEAdvertising::set_min_preferred_interval ( uint16_t  interval)
inline

Definition at line 22 of file ble_advertising.h.

◆ set_scan_response()

void esphome::esp32_ble::BLEAdvertising::set_scan_response ( bool  scan_response)
inline

Definition at line 21 of file ble_advertising.h.

◆ start()

void esphome::esp32_ble::BLEAdvertising::start ( )

Definition at line 50 of file ble_advertising.cpp.

◆ stop()

void esphome::esp32_ble::BLEAdvertising::stop ( )

Definition at line 101 of file ble_advertising.cpp.

Field Documentation

◆ advertising_data_

esp_ble_adv_data_t esphome::esp32_ble::BLEAdvertising::advertising_data_
protected

Definition at line 30 of file ble_advertising.h.

◆ advertising_params_

esp_ble_adv_params_t esphome::esp32_ble::BLEAdvertising::advertising_params_
protected

Definition at line 32 of file ble_advertising.h.

◆ advertising_uuids_

std::vector<ESPBTUUID> esphome::esp32_ble::BLEAdvertising::advertising_uuids_
protected

Definition at line 33 of file ble_advertising.h.

◆ scan_response_

bool esphome::esp32_ble::BLEAdvertising::scan_response_
protected

Definition at line 29 of file ble_advertising.h.

◆ scan_response_data_

esp_ble_adv_data_t esphome::esp32_ble::BLEAdvertising::scan_response_data_
protected

Definition at line 31 of file ble_advertising.h.


The documentation for this class was generated from the following files: