9 #include <esp_gap_ble_api.h> 12 namespace esp32_ble_beacon {
23 uint8_t proximity_uuid[16];
34 using namespace esp32_ble;
38 explicit ESP32BLEBeacon(
const std::array<uint8_t, 16> &uuid) : uuid_(uuid) {}
40 void setup()
override;
41 void dump_config()
override;
42 float get_setup_priority()
const override;
50 void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param)
override;
58 uint16_t min_interval_{};
59 uint16_t max_interval_{};
60 int8_t measured_power_{};
61 esp_power_level_t tx_power_{};
63 bool advertising_{
false};
void set_major(uint16_t major)
struct { uint8_t proximity_uuid[16] esp_ble_ibeacon_vendor_t
struct { uint8_t flags[3] esp_ble_ibeacon_head_t
std::array< uint8_t, 16 > uuid_
void set_max_interval(uint16_t val)
void set_minor(uint16_t minor)
esp_ble_ibeacon_vendor_t ibeacon_vendor
ESP32BLEBeacon(const std::array< uint8_t, 16 > &uuid)
esp_ble_adv_params_t ble_adv_params_
void set_measured_power(int8_t val)
struct { esp_ble_ibeacon_head_t ibeacon_head esp_ble_ibeacon_t
void set_min_interval(uint16_t val)
Implementation of SPI Controller mode.
void set_tx_power(esp_power_level_t val)
Helper class to easily give an object a parent of type T.