moved mqtt thread down

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-16 18:43:44 +01:00
parent 99312886b4
commit 6d1a0632aa
1 changed files with 3 additions and 3 deletions

View File

@ -140,10 +140,10 @@ def start_mqtt_publishers():
print(e)
if __name__ == "__main__":
publisher_thread = threading.Thread(target=start_mqtt_publishers())
publisher_thread.start()
publisher_thread.join()
flask_thread = threading.Thread(target=flask_api())
flask_thread.start()
flask_thread.join()
publisher_thread = threading.Thread(target=start_mqtt_publishers())
publisher_thread.start()
publisher_thread.join()