parent
acc6a93eb9
commit
9d8d5e610d
|
@ -122,10 +122,12 @@ def mqtt_publisher(data_queue):
|
||||||
artNetPacket = artNet.readPacket()
|
artNetPacket = artNet.readPacket()
|
||||||
# Make sure we actually *have* a packet
|
# Make sure we actually *have* a packet
|
||||||
if artNetPacket is not None:
|
if artNetPacket is not None:
|
||||||
|
print(1)
|
||||||
#Checks to see if the current packet is for the specified DMX Universe
|
#Checks to see if the current packet is for the specified DMX Universe
|
||||||
dmxPacket = artNetPacket.data
|
dmxPacket = artNetPacket.data
|
||||||
# Create MQTT topic based on the universe and channel
|
# Create MQTT topic based on the universe and channel
|
||||||
if tube_index is not None:
|
if tube_index is not None:
|
||||||
|
print(2)
|
||||||
for index_row in tube_index:
|
for index_row in tube_index:
|
||||||
if artNetPacket.universe == int(index_row[1]):
|
if artNetPacket.universe == int(index_row[1]):
|
||||||
dmx_address = int(index_row[2])
|
dmx_address = int(index_row[2])
|
||||||
|
|
Loading…
Reference in New Issue