parent
7d5dffb784
commit
87b946b9d3
|
@ -33,12 +33,12 @@ while True:
|
||||||
artNet.art_pol_reply(tuple_ip)
|
artNet.art_pol_reply(tuple_ip)
|
||||||
# Gets whatever the last Art-Net packet we received is
|
# Gets whatever the last Art-Net packet we received is
|
||||||
artNetPacket = artNet.readPacket()
|
artNetPacket = artNet.readPacket()
|
||||||
|
# Make sure we actually *have* a packet
|
||||||
|
if artNetPacket is not None and artNetPacket.data is not None:
|
||||||
print("Packet: "+str(artNetPacket))
|
print("Packet: "+str(artNetPacket))
|
||||||
print("Universe: "+str(artNetPacket.universe))
|
print("Universe: "+str(artNetPacket.universe))
|
||||||
print("Data: "+str(artNetPacket.data))
|
print("Data: "+str(artNetPacket.data))
|
||||||
print(" ")
|
print(" ")
|
||||||
# Make sure we actually *have* a packet
|
|
||||||
if artNetPacket is not None and artNetPacket.data is not None:
|
|
||||||
# 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
|
||||||
if artNetPacket.universe == artnetUniverse:
|
if artNetPacket.universe == artnetUniverse:
|
||||||
# Stores the packet data array
|
# Stores the packet data array
|
||||||
|
|
Loading…
Reference in New Issue