From d6ff6ed60c25e45da1b47b87b54207637ad69d6b Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Tue, 20 Aug 2024 08:13:08 +0200 Subject: [PATCH] Warn about data loss on API communication --- esphome/components/api/api_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/api/api_connection.cpp b/esphome/components/api/api_connection.cpp index bb55a2ccf6..618d16f20e 100644 --- a/esphome/components/api/api_connection.cpp +++ b/esphome/components/api/api_connection.cpp @@ -1531,7 +1531,7 @@ bool APIConnection::send_buffer(ProtoWriteBuffer buffer, uint32_t message_type) if (!this->helper_->can_write_without_blocking()) { // SubscribeLogsResponse if (message_type != 29) { - ESP_LOGV(TAG, "Cannot send message because of TCP buffer space"); + ESP_LOGW(TAG, "Unable to send message: TX buffer not empty. Message discarded"); } delay(0); return false;