From 800292d7fdd8919e916d47d12c8e01b7ee395389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Fri, 16 Feb 2024 00:33:40 +0100 Subject: [PATCH] added small sleeper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index 839e65c..201d750 100644 --- a/server/app.py +++ b/server/app.py @@ -130,7 +130,9 @@ def start_mqtt_publishers(): # Publish the DMX value to the MQTT topic mqtt_client.publish(topic, str(dmxPacket[i-1])) except KeyboardInterrupt: - break + break + + time.sleep(0.0001) except Exception as e: print(e) except KeyboardInterrupt: