updated version

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-13 00:29:27 +01:00
parent dcf31ffd9a
commit ffc64b1f9c
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ def on_connect(client, userdata, flags, reason_code, properties):
def connect_mqtt(): def connect_mqtt():
# Set Connecting Client ID # Set Connecting Client ID
client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION1) client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2)
# client.username_pw_set(username, password) # client.username_pw_set(username, password)
client.on_connect = on_connect client.on_connect = on_connect
client.connect("localhost", 1883) client.connect("localhost", 1883)