From dae2602838ec22e1d4984f9eec633842dafc8476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 15:58:59 +0100 Subject: [PATCH] globalize result MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server/app.py b/server/app.py index 49de2af..975617e 100644 --- a/server/app.py +++ b/server/app.py @@ -158,5 +158,6 @@ if __name__ == "__main__": flask_thread = Process(target=flask_api) flask_thread.start() time.sleep(1) + global result publisher_thread = Process(target=start_mqtt_publishers, args=(result, )) publisher_thread.start()