added threading to publisher

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

View File

@ -140,7 +140,9 @@ def start_mqtt_publishers():
print(e)
if __name__ == "__main__":
start_mqtt_publishers()
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()