-
Notifications
You must be signed in to change notification settings - Fork 142
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 v5.0 support #187
MQTT v5.0 support #187
Conversation
I'm not sure how to fix the linter issue. def _on_connect_cb(
self,
client: mqtt.Client, # not used
userdata: typing.Any, # not used
flags: dict[str, int], # not used
rc: int,
): 🤔 |
No idea why it works in those other cases. Add |
Looks nice. Can you add setting the version to the example in mqtt_ex.py? |
I added it in Will add to 🤔 now that I think about it maybe I should just leave it in What do you think? |
Ah, yes, I misread the PR :) But yes, I think it belongs in mqtt_ex.py only! |
|
please double check the code before merging - I had to alter the |
Added different callback signatures in the
MqttClient
forto support MQTT v5.0
As per the comments in the paho mqtt client:
I'm not sure if anything can be done with the
properties
param passed in the callbacks.Let me know if any changes are required.
Thanks!