mirror of
https://github.com/esphome/esphome.git
synced 2025-08-09 11:57:46 +00:00
Merge branch 'batch_ping_fallback' into integration
This commit is contained in:
commit
088fd85694
@ -165,7 +165,7 @@ void APIConnection::loop() {
|
||||
if (!this->sent_ping_) {
|
||||
// If we can't send the ping request directly (tx_buffer full),
|
||||
// schedule it at the front of the batch so it will be sent with priority
|
||||
ESP_LOGVV(TAG, "Failed to send ping directly, scheduling at front of batch");
|
||||
ESP_LOGW(TAG, "Buffer full, ping queued");
|
||||
this->schedule_message_front_(nullptr, &APIConnection::try_send_ping_request, PingRequest::MESSAGE_TYPE);
|
||||
this->sent_ping_ = true; // Mark as sent to avoid scheduling multiple pings
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user