From ceec7aad42aaf39228da855a6ea4de2da20861a4 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 21 Aug 2026 16:13:30 -0500 Subject: [PATCH] Include the handle in the dropped notify log lines --- .../bluetooth_connection/bluetooth_connection_hub.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/esphome/components/bluetooth_connection/bluetooth_connection_hub.cpp b/esphome/components/bluetooth_connection/bluetooth_connection_hub.cpp index 1a9aeacd59..ddab4812cc 100644 --- a/esphome/components/bluetooth_connection/bluetooth_connection_hub.cpp +++ b/esphome/components/bluetooth_connection/bluetooth_connection_hub.cpp @@ -373,10 +373,12 @@ void BluetoothConnection::on_notify_data(uint16_t handle, const uint8_t *data, u // peripheral will not resend it. Warn on the first drop only; a congested // link drops a whole stream and one line per notify floods the log. if (!this->notify_drop_warned_) { - ESP_LOGW(TAG, "[%d] [%s] Failed to send notify data response", this->connection_index_, this->address_str_); + ESP_LOGW(TAG, "[%d] [%s] Failed to send notify data response, handle 0x%04X", this->connection_index_, + this->address_str_, handle); this->notify_drop_warned_ = true; } else { - ESP_LOGV(TAG, "[%d] [%s] Failed to send notify data response", this->connection_index_, this->address_str_); + ESP_LOGV(TAG, "[%d] [%s] Failed to send notify data response, handle 0x%04X", this->connection_index_, + this->address_str_, handle); } } }