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:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user