Closed rkochman closed 6 years ago
Where did you get that protocol value 3 means mqtt 3.1? The only paho mqtt documentation I can find says that the protocol should be 'MQTTv3.1' or 'MQTTv3.11'. Im glad that this works for you but I'm a little hesitant to merge it until i can better understand why. I do appreciate the PR though.
The source code for the client shows that MQTTv31 is 3 and MQTTv311 is 4.
The examples show using just MQTTv31 without quotes, because it is an environment variable in client.py.
Fair enough, the documentation is a bit lacking.
Protocol value 3 indicates MQTT version 3.1 Fixes #23