-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
MQTT Consumer: persistent session is not working because of random clientId #797
Labels
bug
unexpected problem or unintended behavior
Comments
noonowl71
changed the title
MQTT Consumer: persistent session is not working because on random clientId
MQTT Consumer: persistent session is not working because of random clientId
Mar 6, 2016
yep, that's a bug, thanks for the report |
it's worth noting that we're also setting clean session to true currently, so they wouldn't be delivered anyways. We probably need to provide an option to set clean option to false and specify the client ID. (if clean option is set to false user must specify a client ID) |
sparrc
added a commit
that referenced
this issue
Mar 7, 2016
sparrc
added a commit
that referenced
this issue
Mar 7, 2016
sparrc
added a commit
that referenced
this issue
Mar 7, 2016
sparrc
added a commit
that referenced
this issue
Mar 7, 2016
That should do it, thanks! |
geodimm
pushed a commit
to miketonks/telegraf
that referenced
this issue
Mar 10, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to set up a MQTT subscription with QOS 2 (mosquitto broker), which means the broker should keep messages when subscriber is offline, and send all stored messages when the subscriber becomes online.
Well, this is not working because Telegraf uses a random clientId to connect to the broker, and this causes that the persistent session is different every time it connects. From the mosquitto docs:
I think the best is to create a config option to override the clientId
The text was updated successfully, but these errors were encountered: