ESP32 Bluetooth Low Energy Beacon

See Application::make_esp32_ble_beacon().

API Reference

class ESP32BLEBeacon : public Component

Public Functions

ESP32BLEBeacon(const std::array<uint8_t, 16> &uuid)
void setup()

Where the component’s initialization should happen.

Analogous to Arduino’s setup(). This method is guaranteed to only be called once. Defaults to doing nothing.

float get_setup_priority() const

priority of setup().

higher -> executed earlier

Defaults to 0.

The setup priority of this component

void set_major(uint16_t major)
void set_minor(uint16_t minor)

Protected Attributes

std::array<uint8_t, 16> uuid
uint16_t major = {10167}
uint16_t minor = {61958}

Protected Static Functions

void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param)
void ble_core_task(void *params)
void ble_setup()
ESP32BLEBeacon *global_esp32_ble_beacon