12#ifdef USE_ESP32_BLE_ADVERTISING
14#include <esp_gap_ble_api.h>
void set_manufacturer_data(const std::vector< uint8_t > &data)
void add_service_uuid(ESPBTUUID uuid)
uint8_t service_data_len_
void clear_priority_uuid()
void set_include_name(bool include_name)
uint8_t manufacturer_data_len_
bool include_name_in_adv_
std::vector< ESPBTUUID > advertising_uuids_
int8_t current_adv_index_
std::array< uint8_t, MAX_DATA_LEN > service_data_
std::vector< std::function< void(bool)> > raw_advertisements_callbacks_
BLEAdvertising(uint32_t advertising_cycle_time)
void set_priority_uuid(ESPBTUUID uuid)
Give uuid and the service data the advertising packet; the rest moves to the scan response.
static constexpr size_t MAX_DATA_LEN
esp_err_t services_advertisement_()
esp_ble_adv_params_t advertising_params_
void set_service_data(const std::vector< uint8_t > &data)
const uint32_t advertising_cycle_time_
void remove_service_uuid(ESPBTUUID uuid)
uint32_t last_advertisement_time_
std::array< uint8_t, MAX_DATA_LEN > manufacturer_data_
void register_raw_advertisement_callback(std::function< void(bool)> &&callback)
void set_appearance(uint16_t appearance)
void request_start()
Send from the next loop(): a burst of refreshes becomes one send instead of flooding the Bluetooth ta...