From d13753d001dafb79ba115f41b645b7ed6ad07b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 04:00:38 +0100 Subject: [PATCH] fixed tuple MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- client/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/main.py b/client/main.py index 84d60cd..016867d 100644 --- a/client/main.py +++ b/client/main.py @@ -63,7 +63,7 @@ def update_led_strip(rgb_values, pixel, strip): print("Updated pixel "+str(pixel)+" with "+str(rgb_values)) def on_message(mqttc, obj, msg): - rgb_values = list(msg.payload.decode()) + rgb_values = tuple(msg.payload.decode()) if msg.topic == "tube-"+wlan_mac_address+"/p1": for pixel in range(LEDS_PER_PIXEL): update_led_strip(rgb_values, pixel, strip)