I've tested the new method of connecting to the broker and can confirm that it really works. After turning the router off/on, the application automatically reconnects to the broker and continues to function. The rewritten application mqtt_led.toit is in the
https://github.com/mk590901/TOIT-MQTT-Service/ repository. Previous version: mqtt_rgb_led.toit.