Skip to content

Commit 4bd206d

Browse files
authored
Merge pull request #28 from penguineer/dependabot/pip/paho-mqtt-2.1.0
Bump paho-mqtt from 1.6.1 to 2.1.0
2 parents 0e019c9 + 42a128f commit 4bd206d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mqtt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def on_disconnect(mqttc, userdata, rc):
5757

5858

5959
def create_client(mqtt_config, on_disconnect_cb=None):
60-
client = mqtt.Client()
60+
client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION1)
6161
client.on_connect = on_connect
6262
client.on_disconnect = on_disconnect
6363
client.user_data_set({"on_disconnect_cb": on_disconnect_cb}) # Pass callback via userdata

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
paho-mqtt==1.6.1
1+
paho-mqtt==2.1.0
22
PySensors==0.0.4

0 commit comments

Comments
 (0)