From 8943085d7aa8301c169625de73bceea8510503f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sun, 18 Feb 2024 01:24:07 +0100 Subject: [PATCH] added sleeper 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 835f87a..d6ff4a7 100644 --- a/server/app.py +++ b/server/app.py @@ -157,6 +157,7 @@ if __name__ == "__main__": tube_index_smem = Value("tube_index", None) ti_updater_thread = Process(target=tube_index_updater, args=(tube_index_smem)) ti_updater_thread.start() + time.sleep(1) publisher_thread = Process(target=mqtt_publisher, args=(tube_index_smem)) publisher_thread.start() flask_thread = Process(target=flask_api)