dmx packet var

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-13 15:07:39 +01:00
parent 984375902d
commit 822c9e1cda
1 changed files with 3 additions and 4 deletions

View File

@ -121,11 +121,10 @@ def mqtt_publisher(universe, artnetPacket):
print(str(artnetPacket)) print(str(artnetPacket))
if artnetPacket is not None and artnetPacket.data is not None: if artnetPacket is not None and artnetPacket.data is not None:
if artnetPacket.universe == universe: 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)) print(str(dmxPacket))
# for i in dmx_values: # for i in dmxPacket:
# # # Create MQTT topic based on the universe and channel # # # Create MQTT topic based on the universe and channel
# # topic = f"{universe}/{channel}" # # topic = f"{universe}/{channel}"