Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

hookstream should re-subscribe mqtt topics after disconnected #26

Closed
williamlsh opened this issue May 20, 2021 · 1 comment
Closed

hookstream should re-subscribe mqtt topics after disconnected #26

williamlsh opened this issue May 20, 2021 · 1 comment

Comments

@williamlsh
Copy link
Collaborator

No description provided.

@williamlsh
Copy link
Collaborator Author

williamlsh commented May 21, 2021

To achive re-subscription after connection reestablished to mqtt broker, set these options:

For mqtt client: CleanSession = false

For mqtt broker: persistent_client_expiration 10m

By setting these options, you can't espect that publishing after disconnection will success, you must implememt retying by yourself.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant