Open ChuckMash opened 6 months ago
Hey @knolleary would you be able to review/merge this oneliner bugfix? It would save A LOT of reconnections for all of us! Thanks :)
Unfortunately there are so may undone pull requests here that one can believe that @knolleary dropped support of this repo. Maybe it's good to do a PR at https://github.com/thingsboard/pubsubclient as they promised to support development on this library.
@hmueller01 opened a PR there: https://github.com/thingsboard/pubsubclient/pull/7
Setting keep alive to 0, or infinite keep alive, is not currently handled correctly. Currently the client will immediately disconnect when keep alive is set to 0, this fix adds a check for this state before attempting PINGREQ.
Solves #1033