From bb9f5c8f2ab4695d9ef52388b0805aed47a07ecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sun, 18 Feb 2024 15:46:47 +0100 Subject: [PATCH] made tube_index tuple when received MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/app.py b/server/app.py index 4d0a2d5..fb40710 100644 --- a/server/app.py +++ b/server/app.py @@ -116,12 +116,11 @@ def mqtt_publisher(ti_receiver): artNet = Artnet.Artnet(BINDIP = artnetBindIp, DEBUG = True, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", PORT = 6454) while True: try: - tube_index = ti_receiver.recv() + tube_index = tuple(ti_receiver.recv()) except: tube_index = tube_index_old tube_index_old = None - print(tube_index) try: # Gets whatever the last Art-Net packet we received is artNetPacket = artNet.readPacket()