From a8a3cb618b4c42fb160bdcac128fa6876092643d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 13 Feb 2024 00:00:51 +0100 Subject: [PATCH] try to fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app.py b/server/app.py index d54471f..0375f56 100644 --- a/server/app.py +++ b/server/app.py @@ -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