From d768be0b18c9ee632394a69f0ecd60086c46bb12 Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Wed, 23 Oct 2024 14:22:48 +0200 Subject: [PATCH] added mqtt_client loop --- src/Python/flask/web/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Python/flask/web/app.py b/src/Python/flask/web/app.py index de37ea0..b5a71bf 100644 --- a/src/Python/flask/web/app.py +++ b/src/Python/flask/web/app.py @@ -8,7 +8,7 @@ mqtt_client = mqtt.Client() # Verbinding maken met de Raspberry Pi (broker) mqtt_client.username_pw_set("ishak", "kobuki") mqtt_client.connect("ishakpi.ddns.net", 1883, 60) - +mqtt_client.loop_forever() @app.route('/') def index(): return render_template('index.html')