parent
c8d3cbd5db
commit
995a00eba6
|
@ -117,11 +117,11 @@ def mqtt_publisher(universe, artnetPacket):
|
||||||
universe = universe-1
|
universe = universe-1
|
||||||
mqtt_client = connect_mqtt()
|
mqtt_client = connect_mqtt()
|
||||||
try:
|
try:
|
||||||
dmx_values = artnetPacket.data
|
|
||||||
while True:
|
while True:
|
||||||
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:
|
if dmx_values is not None:
|
||||||
dmxPacket = artnetPacket.data
|
dmxPacket = artnetPacket.data
|
||||||
for i in dmx_values:
|
for i in dmx_values:
|
||||||
|
|
Loading…
Reference in New Issue