Remove 5000ms offset from alive check

I'm not sure what the 5000 is representing, but having it there breaks connectivity for me.

#71
This commit is contained in:
Richie Vos
2023-04-03 21:14:29 -07:00
committed by GitHub
parent ead3ae90e9
commit c4cc36a88f

View File

@@ -309,7 +309,7 @@ void MqttClient::clientAlive(uint32_t more_seconds)
void MqttClient::loop()
{
if (keep_alive && (millis() >= alive - 5000))
if (keep_alive && (millis() >= alive))
{
if (tcp_client && tcp_client->connected())
{