[esp32_ble_tracker] Retire the raw listener path and parser-type enum (#18177)

This commit is contained in:
J. Nick Koston
2026-08-08 19:13:07 -05:00
committed by GitHub
parent 8c74e3d5ef
commit c7d6b4aaa4
7 changed files with 30 additions and 94 deletions
+14 -2
View File
@@ -674,11 +674,23 @@ void ESP32BLE::gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gat
}
#endif
void ESP32BLE::get_mac_msb_first(uint8_t out[6]) const {
// The running stack owns the address (on hosted controllers it lives in
// the remote chip's efuse); null before init becomes all-zero.
const uint8_t *mac = esp_bt_dev_get_address();
if (mac != nullptr) {
memcpy(out, mac, 6);
} else {
memset(out, 0, 6);
}
}
float ESP32BLE::get_setup_priority() const { return setup_priority::BLUETOOTH; }
void ESP32BLE::dump_config() {
const uint8_t *mac_address = esp_bt_dev_get_address();
if (mac_address) {
uint8_t mac_address[6];
this->get_mac_msb_first(mac_address);
if (mac_address_is_valid(mac_address)) {
const char *io_capability_s;
switch (this->io_cap_) {
case ESP_IO_CAP_OUT: