Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto reconnect not work if the network break four hours when network recorvery #1568

Open
leetb-leetb opened this issue Jan 26, 2025 · 0 comments

Comments

@leetb-leetb
Copy link

version 1.3.14, my code is blew:
conn_opts.automaticReconnect = 1;
conn_opts.minRetryInterval = 48;
conn_opts.maxRetryInterval = 96;
conn_opts.keepAliveInterval = 60;

when my netwok broken , i can receive MQTTAsync_connectionLost, but after four hours or more , my network recovery, the client can't auto reconnect, seem the client had sleepped, i must do something to wake up client,then it can auto connect, is there some settings which let client not sleep, always to retry to reconnect?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant