added sleeper

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-18 01:24:07 +01:00
parent 41bb1bfa6f
commit 8943085d7a
1 changed files with 1 additions and 0 deletions

View File

@ -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)