diff --git a/client/main.py b/client/main.py index e9e8624..1c60fd2 100644 --- a/client/main.py +++ b/client/main.py @@ -59,11 +59,13 @@ def is_connected_to_wifi(): return output.split('"')[1] def update_led_strip(rgb_values, pixel, strip): + print(pixel) + print(rgb_values) + print("") strip[int(pixel)] = rgb_values def on_message(mqttc, obj, msg): rgb_values_list = eval(msg.payload.decode()) - print(rgb_values_list) for pixel in range(LEDS_PER_PIXEL): update_led_strip(tuple(eval(rgb_values_list[0])), pixel, strip)