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
Using the mosquitto_sub -R
flag causes failed subscription.
#1353
Comments
Just poking around near the "Invalid QoS" message and wondering if the protocol version is somehow mismatched between the subscribing client and the broker? The logs show that I'm subscribing with options "0x20" when the |
You're right, it is setting MQTT v5 subscription options on v3 subscriptions. It should be checking the protocol before setting those options. I've pushed a change that has the library ignore any subscription options if the client isn't using MQTT v5. |
Closes eclipse#1353. Thanks to Ben Barbour.
I'm running mosquitto 1.6.3 and if I run
mosquitto_sub -t root/A/B/C -C 1 -W 5 -u usr1 -P usr1Pwd -I ben -d
and then before it times out I runmosquitto_pub -t root/A/B/C -m hello -u usr2 -P usr2Pwd
then I get this output (after creating the given users, of course):mosquitto_sub output
Broker logs
However, if I retry the same thing with the subscribe command changed to:
mosquitto_sub -t root/A/B/C -C 1 -W 5 -u usr1 -P usr1Pwd -I ben -d -R
(just add the-R
flag) then this is the output:mosquitto_sub output
Broker logs
The text was updated successfully, but these errors were encountered: