From 822c9e1cda47bc5997cf7038c34d7653d06b4c49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 13 Feb 2024 15:07:39 +0100 Subject: [PATCH] dmx packet var MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/app.py b/server/app.py index 98704bf..97496ec 100644 --- a/server/app.py +++ b/server/app.py @@ -121,11 +121,10 @@ def mqtt_publisher(universe, artnetPacket): print(str(artnetPacket)) if artnetPacket is not None and artnetPacket.data is not None: if artnetPacket.universe == universe: - dmx_values = artnetPacket.data - if dmx_values is not None: - dmxPacket = artnetPacket.data + dmxPacket = artnetPacket.data + if dmxPacket is not None: print(str(dmxPacket)) - # for i in dmx_values: + # for i in dmxPacket: # # # Create MQTT topic based on the universe and channel # # topic = f"{universe}/{channel}"