added fail safe if pxm isn't reacheable

Signed-off-by: Ebbe Baß <ebbe.bass>
This commit is contained in:
Ebbe Baß
2024-02-17 01:02:05 +01:00
parent 28b8731afc
commit 9aa44f1292
2 changed files with 7 additions and 6 deletions
+2
View File
@@ -8,6 +8,7 @@ from threading import Thread
import paho.mqtt.client as mqtt
from getmac import get_mac_address
import board
import sys
SERVER_IP = '192.168.0.1'
SERVER_PORT = 5000
@@ -101,6 +102,7 @@ def loopCheckSettingUpdates():
print(universe, dmx_address)
except Exception as e:
print(f"Error: {e}")
sys.exit()
time.sleep(2)
if __name__ == "__main__":