ESPHome  2024.5.0
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 (const std::vector< uint8_t > &data)
void set_service_data (const std::vector< uint8_t > &data)
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 ( const std::vector< uint8_t > &  data)

Definition at line 56 of file ble_advertising.cpp.

◆ set_min_preferred_interval()

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

Definition at line 22 of file ble_advertising.h.

◆ set_scan_response()

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

Definition at line 21 of file ble_advertising.h.

◆ set_service_data()

void esphome::esp32_ble::BLEAdvertising::set_service_data ( const std::vector< uint8_t > &  data)

Definition at line 45 of file ble_advertising.cpp.

◆ start()

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

Definition at line 67 of file ble_advertising.cpp.

◆ stop()

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

Definition at line 121 of file ble_advertising.cpp.

Field Documentation

◆ advertising_data_

esp_ble_adv_data_t esphome::esp32_ble::BLEAdvertising::advertising_data_

Definition at line 31 of file ble_advertising.h.

◆ advertising_params_

esp_ble_adv_params_t esphome::esp32_ble::BLEAdvertising::advertising_params_

Definition at line 33 of file ble_advertising.h.

◆ advertising_uuids_

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

Definition at line 34 of file ble_advertising.h.

◆ scan_response_

bool esphome::esp32_ble::BLEAdvertising::scan_response_

Definition at line 30 of file ble_advertising.h.

◆ scan_response_data_

esp_ble_adv_data_t esphome::esp32_ble::BLEAdvertising::scan_response_data_

Definition at line 32 of file ble_advertising.h.

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