diff --git a/server/app.py b/server/app.py index 3123909..57f4a0a 100644 --- a/server/app.py +++ b/server/app.py @@ -120,15 +120,14 @@ def start_mqtt_publishers(): try: # Gets whatever the last Art-Net packet we received is artNetPacket = artNet.readPacket() - print(artNetPacket.length) # 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 dmxPacket = artNetPacket.data for i in range(512): - print(str(i)) - print(str(artNetPacket.universe)) try: + print(str(i)) + print(str(artNetPacket.universe)) # Create MQTT topic based on the universe and channel topic = f"{str(artNetPacket.universe)}/{str(i)}" diff --git a/server/exampleReceiver.py b/server/exampleReceiver.py index 6dbd804..c4dbce7 100644 --- a/server/exampleReceiver.py +++ b/server/exampleReceiver.py @@ -22,7 +22,7 @@ artNet = Artnet.Artnet(BINDIP = artnetBindIp, DEBUG = False, SHORTNAME = "PiXelT tuple_ip = (str(get_eth0_ip()), 6454) artNet.art_pol_reply(tuple_ip) artNetPacket = artNet.readPacket() -print(type(artNetPacket.universe)) +print(artNetPacket) while True: try: # Gets whatever the last Art-Net packet we received is