try to fix

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-13 00:00:51 +01:00
parent 76b2d20b25
commit a8a3cb618b
1 changed files with 2 additions and 2 deletions

View File

@ -107,8 +107,8 @@ def connect_mqtt():
print("Failed to connect to MQTT broker, return code %d\n", rc)
client = mqtt.Client(mqtt_client_id)
client.on_connect = on_connect()
client.connect("localhost", 1883, 60)
client.on_connect = on_connect
client.connect("localhost", 1883)
return client