added some debugging

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-13 18:33:05 +01:00
parent 14950664d9
commit 651eab50ba
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,10 @@ 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()
print("Packet: "+artNetPacket)
print("Universe: "+artNetPacket.universe)
print("Data: "+artNetPacket.data)
print(" ")
# Make sure we actually *have* a packet # Make sure we actually *have* a packet
if artNetPacket is not None and artNetPacket.data is not None: 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