Skip to content
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

Open
robocircuits opened this issue Sep 6, 2020 · 4 comments
Labels
question Further information is requested

Comments

@robocircuits
Copy link

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.

@gguuss
Copy link
Contributor

gguuss commented Oct 15, 2020

Please tell us a little more about what's going on: what board are you using, what versions of SSL are installed, and so forth.

@gguuss gguuss added the question Further information is requested label Oct 15, 2020
@robocircuits
Copy link
Author

robocircuits commented Oct 16, 2020 via email

@gguuss
Copy link
Contributor

gguuss commented Oct 16, 2020

I added a note to the readme but it could make sense to add this change to the example.

@robocircuits
Copy link
Author

robocircuits commented Oct 16, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants