From 14950664d9d8f8d9d6a670aecb722efd00e029b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 13 Feb 2024 18:28:59 +0100 Subject: [PATCH] send poll in loop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/exampleReceiver.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/exampleReceiver.py b/server/exampleReceiver.py index 2a34222..bb46bc0 100644 --- a/server/exampleReceiver.py +++ b/server/exampleReceiver.py @@ -28,10 +28,9 @@ artnetUniverse = 0 artNet = Artnet.Artnet(BINDIP = get_eth0_ip(), DEBUG = True, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", REFRESH = 60) tuple_ip = (str(get_eth0_ip()), 6454) - -artNet.art_pol_reply(tuple_ip) while True: try: + artNet.art_pol_reply(tuple_ip) # Gets whatever the last Art-Net packet we received is artNetPacket = artNet.readPacket() # Make sure we actually *have* a packet