#include <ble_advertising.h>
Definition at line 18 of file ble_advertising.h.
◆ BLEAdvertising()
| esphome::esp32_ble::BLEAdvertising::BLEAdvertising |
( |
uint32_t | advertising_cycle_time | ) |
|
◆ add_service_uuid()
| void esphome::esp32_ble::BLEAdvertising::add_service_uuid |
( |
ESPBTUUID | uuid | ) |
|
◆ cancel_start()
| void esphome::esp32_ble::BLEAdvertising::cancel_start |
( |
| ) |
|
|
inline |
◆ clear_priority_uuid()
| void esphome::esp32_ble::BLEAdvertising::clear_priority_uuid |
( |
| ) |
|
|
inline |
◆ loop()
| void esphome::esp32_ble::BLEAdvertising::loop |
( |
| ) |
|
◆ register_raw_advertisement_callback()
| void esphome::esp32_ble::BLEAdvertising::register_raw_advertisement_callback |
( |
std::function< void(bool)> && | callback | ) |
|
◆ remove_service_uuid()
| void esphome::esp32_ble::BLEAdvertising::remove_service_uuid |
( |
ESPBTUUID | uuid | ) |
|
◆ request_start()
| void esphome::esp32_ble::BLEAdvertising::request_start |
( |
| ) |
|
|
inline |
Send from the next loop(): a burst of refreshes becomes one send instead of flooding the Bluetooth task queue.
Definition at line 39 of file ble_advertising.h.
◆ services_advertisement_()
| esp_err_t esphome::esp32_ble::BLEAdvertising::services_advertisement_ |
( |
| ) |
|
|
protected |
◆ set_appearance()
| void esphome::esp32_ble::BLEAdvertising::set_appearance |
( |
uint16_t | appearance | ) |
|
|
inline |
◆ set_include_name()
| void esphome::esp32_ble::BLEAdvertising::set_include_name |
( |
bool | include_name | ) |
|
|
inline |
◆ set_manufacturer_data()
| void esphome::esp32_ble::BLEAdvertising::set_manufacturer_data |
( |
const std::vector< uint8_t > & | data | ) |
|
◆ set_priority_uuid()
| void esphome::esp32_ble::BLEAdvertising::set_priority_uuid |
( |
ESPBTUUID | uuid | ) |
|
|
inline |
Give uuid and the service data the advertising packet; the rest moves to the scan response.
Definition at line 32 of file ble_advertising.h.
◆ set_service_data() [1/2]
| void esphome::esp32_ble::BLEAdvertising::set_service_data |
( |
const std::vector< uint8_t > & | data | ) |
|
◆ set_service_data() [2/2]
| void esphome::esp32_ble::BLEAdvertising::set_service_data |
( |
std::span< const uint8_t > | data | ) |
|
◆ start()
| void esphome::esp32_ble::BLEAdvertising::start |
( |
| ) |
|
◆ stop()
| void esphome::esp32_ble::BLEAdvertising::stop |
( |
| ) |
|
◆ advertising_cycle_time_
| const uint32_t esphome::esp32_ble::BLEAdvertising::advertising_cycle_time_ |
|
protected |
◆ advertising_params_
| esp_ble_adv_params_t esphome::esp32_ble::BLEAdvertising::advertising_params_ |
|
protected |
◆ advertising_uuids_
| std::vector<ESPBTUUID> esphome::esp32_ble::BLEAdvertising::advertising_uuids_ |
|
protected |
◆ appearance_
| uint16_t esphome::esp32_ble::BLEAdvertising::appearance_ {0} |
|
protected |
◆ current_adv_index_
| int8_t esphome::esp32_ble::BLEAdvertising::current_adv_index_ {-1} |
|
protected |
◆ include_name_in_adv_
| bool esphome::esp32_ble::BLEAdvertising::include_name_in_adv_ {false} |
|
protected |
◆ last_advertisement_time_
| uint32_t esphome::esp32_ble::BLEAdvertising::last_advertisement_time_ {0} |
|
protected |
◆ manufacturer_data_
| std::array<uint8_t, MAX_DATA_LEN> esphome::esp32_ble::BLEAdvertising::manufacturer_data_ |
|
protected |
◆ manufacturer_data_len_
| uint8_t esphome::esp32_ble::BLEAdvertising::manufacturer_data_len_ {0} |
|
protected |
◆ MAX_DATA_LEN
| size_t esphome::esp32_ble::BLEAdvertising::MAX_DATA_LEN = 29 |
|
staticconstexprprotected |
◆ priority_uuid_
| ESPBTUUID esphome::esp32_ble::BLEAdvertising::priority_uuid_ |
|
protected |
◆ raw_advertisements_callbacks_
| std::vector<std::function<void(bool)> > esphome::esp32_ble::BLEAdvertising::raw_advertisements_callbacks_ |
|
protected |
◆ service_data_
| std::array<uint8_t, MAX_DATA_LEN> esphome::esp32_ble::BLEAdvertising::service_data_ |
|
protected |
◆ service_data_len_
| uint8_t esphome::esp32_ble::BLEAdvertising::service_data_len_ {0} |
|
protected |
◆ start_pending_
| bool esphome::esp32_ble::BLEAdvertising::start_pending_ {false} |
|
protected |
The documentation for this class was generated from the following files: