added threading to flask

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-12 23:04:06 +01:00
parent c1d351a267
commit 91c97a3046
1 changed files with 4 additions and 1 deletions

View File

@ -138,4 +138,7 @@ def start_mqtt_publishers(universe_count):
if __name__ == "__main__":
start_mqtt_publishers(universe_count)
flask_api()
flask_thread = threading.Thread(target=flask_api())
flask_thread.start()
flask_thread.join()