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

In case of reconnection to MQTT broker subscriptions are lost #333

Closed
JohannesHennecke opened this issue Oct 23, 2023 · 0 comments · Fixed by #337
Closed

In case of reconnection to MQTT broker subscriptions are lost #333

JohannesHennecke opened this issue Oct 23, 2023 · 0 comments · Fixed by #337

Comments

@JohannesHennecke
Copy link
Contributor

Describe the bug
When connection to the MQTT broker is lost for a short time, mqtt-io reconnects to the broker and is able to publish again. But the subscriptions to topics which were made when mqtt-io first connected to the broker, are lost. That means, that after the reconnection mqtt-io does not react anymore when requests are made using those topics.

Expected behavior
The subscriptions should be repeated directly after the reconnection.

Error messages and traceback

Paste any error messages and Python traceback if applicable.

Config

Hardware
Raspberry Pi 4

  • Connected hardware: custom testboard

System:

  • OS: Raspbian
  • Python version: 3.7.3
  • User you're running as: pi
  • Using a virtualenv?: no

Additional context
I have implemented a solution for this problem and would like to commit it.

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

Successfully merging a pull request may close this issue.

1 participant