Skip to content

Commit

Permalink
migrate to paho_mqtt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
toelke committed Jun 6, 2024
1 parent e1c2917 commit 41db29c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autotask.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def on_subscribe(client, userdata, mid, granted_ops):
logger.info("Subscribed")


mqtt_client = mqtt.Client()
mqtt_client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION1)
mqtt_client.on_connect = on_connect
mqtt_client.on_message = on_message
mqtt_client.on_subscribe = on_subscribe
Expand Down

0 comments on commit 41db29c

Please sign in to comment.