This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
Gateway is getiing connected again and again ... exactly after 10 seconds #189
Labels
question
Further information is requested
In the loop function
// This is where the problem is when mqtt calls mqttConnect if (!mqttClient->connected()) { connect(); }
works only when the timeout happens for the MQTTclient.
mqttClient->setOptions(180, true, 10000); // keepAlive, cleanSession, timeout
If the timeout is increased resetting of the connection increases.
The situation is getting confusing the more I try to understand it.
The text was updated successfully, but these errors were encountered: