[esp32_ble_tracker, ble_client] Reduce heap allocations with stack-based string formatting (#12982)

This commit is contained in:
J. Nick Koston
2026-01-05 07:39:37 -10:00
committed by GitHub
parent 0990a9c2b0
commit 1bb4be435c
10 changed files with 77 additions and 40 deletions
@@ -529,7 +529,7 @@ void BLEClientBase::gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_
case ESP_GAP_BLE_AUTH_CMPL_EVT:
if (!this->check_addr(param->ble_security.auth_cmpl.bd_addr))
return;
char addr_str[MAC_ADDR_STR_LEN];
char addr_str[MAC_ADDRESS_PRETTY_BUFFER_SIZE];
format_mac_addr_upper(param->ble_security.auth_cmpl.bd_addr, addr_str);
ESP_LOGI(TAG, "[%d] [%s] auth complete addr: %s", this->connection_index_, this->address_str_, addr_str);
if (!param->ble_security.auth_cmpl.success) {