From aabdd7d46adb9080ee77c4752f70feadd587d8b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 14:55:24 +0100 Subject: [PATCH] packet limit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- client/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/main.py b/client/main.py index 1c60fd2..cae46c4 100644 --- a/client/main.py +++ b/client/main.py @@ -86,7 +86,6 @@ def on_message(mqttc, obj, msg): update_led_strip(tuple(eval(rgb_values_list[5])), pixel, strip) strip.show() - time.sleep(0.01) if __name__ == "__main__": # Connect to Wi-Fi @@ -100,4 +99,4 @@ if __name__ == "__main__": mqttc.on_message = on_message mqttc.subscribe("tube-"+str(wlan_mac_address)+"/pixel_colors", 0) - mqttc.loop_forever() \ No newline at end of file + mqttc.loop_forever(max_packets = 1) \ No newline at end of file