Removed the bad 5000ms add in timeout detection
This commit is contained in:
@@ -339,7 +339,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