Default to MQTT protocol v3.1.1 (fix #854)
This commit is contained in:
parent
204c151113
commit
9faedf0e67
1 changed files with 2 additions and 2 deletions
|
@ -149,9 +149,9 @@ class MQTT(object):
|
|||
}
|
||||
|
||||
if client_id is None:
|
||||
self._mqttc = mqtt.Client()
|
||||
self._mqttc = mqtt.Client(protocol=mqtt.MQTTv311)
|
||||
else:
|
||||
self._mqttc = mqtt.Client(client_id)
|
||||
self._mqttc = mqtt.Client(client_id, protocol=mqtt.MQTTv311)
|
||||
|
||||
self._mqttc.user_data_set(self.userdata)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue