packet limit

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 14:55:24 +01:00
parent 4b694a93b2
commit aabdd7d46a
1 changed files with 1 additions and 2 deletions

View File

@ -86,7 +86,6 @@ def on_message(mqttc, obj, msg):
update_led_strip(tuple(eval(rgb_values_list[5])), pixel, strip) update_led_strip(tuple(eval(rgb_values_list[5])), pixel, strip)
strip.show() strip.show()
time.sleep(0.01)
if __name__ == "__main__": if __name__ == "__main__":
# Connect to Wi-Fi # Connect to Wi-Fi
@ -100,4 +99,4 @@ if __name__ == "__main__":
mqttc.on_message = on_message mqttc.on_message = on_message
mqttc.subscribe("tube-"+str(wlan_mac_address)+"/pixel_colors", 0) mqttc.subscribe("tube-"+str(wlan_mac_address)+"/pixel_colors", 0)
mqttc.loop_forever() mqttc.loop_forever(max_packets = 1)