This commit is contained in:
J. Nick Koston
2025-06-05 22:37:55 +01:00
parent aa2f0e8ff9
commit aa2b49178d
6 changed files with 21 additions and 21 deletions

View File

@@ -192,7 +192,7 @@ void APIConnection::loop() {
}
} else if (now - this->last_traffic_ > KEEPALIVE_TIMEOUT_MS && now > this->next_ping_retry_) {
ESP_LOGVV(TAG, "Sending keepalive PING");
this->sent_ping_ = this->send_ping_request(PingRequest());
this->sent_ping_ = this->send_message(PingRequest());
if (!this->sent_ping_) {
this->next_ping_retry_ = now + ping_retry_interval;
this->ping_retries_++;