From aa1e1e708e44c0a4dc010b41e64be5391a210936 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Thu, 15 Feb 2024 11:44:05 +0100 Subject: [PATCH] test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 5 ++--- server/exampleReceiver.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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