From cef018cdbfe945be4e1fcb7b1609397f8a4434f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 16:04:01 +0100 Subject: [PATCH] updated function name 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 e77b914..21067a3 100644 --- a/server/app.py +++ b/server/app.py @@ -118,7 +118,7 @@ def update_tube_index(): print("Updated index: "+str(result)) time.sleep(10) -def start_mqtt_publishers(): +def mqtt_publisher(): global result # Create and start a thread for each universe mqtt_client = connect_mqtt() @@ -155,5 +155,5 @@ if __name__ == "__main__": flask_thread = Process(target=flask_api) flask_thread.start() time.sleep(10) - publisher_thread = Process(target=start_mqtt_publishers, args=()) + publisher_thread = Process(target=mqtt_publisher, args=()) publisher_thread.start()