mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 12:06:26 +01:00
Warn about data loss on API communication
This commit is contained in:
parent
1d91601094
commit
d6ff6ed60c
@ -1531,7 +1531,7 @@ bool APIConnection::send_buffer(ProtoWriteBuffer buffer, uint32_t message_type)
|
|||||||
if (!this->helper_->can_write_without_blocking()) {
|
if (!this->helper_->can_write_without_blocking()) {
|
||||||
// SubscribeLogsResponse
|
// SubscribeLogsResponse
|
||||||
if (message_type != 29) {
|
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);
|
delay(0);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user