-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a backoff mechanism for reconnection with random interval
Mechanism is as follow: If mqtt socket is diconnected, a new attempt is done immediatelly and then after a rendom delay within [1, 2], then [2, 4], [4, 8]...[32, 64] And then attemps is always after a delay within [32, 64] interval until mqtt_reconnect_delay set or forever if no reconnect delay set
- Loading branch information
1 parent
aff767a
commit 3c82685
Showing
1 changed file
with
28 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters