@trillian: the current firmware already implements reconnect when it detects the disconnection:
basically if it detects the WiFi is no longer connected, it sends the controller back to initial state and it will try to connect again. The problem is so far I haven’t been able to reproduce the issue — I’ve tried to use our own router, unplug the power and replug the power, and the reconnect works just fine. Without reproducing the issue it’s difficult to guess what exactly is the problem. Maybe sending it to initial state isn’t sufficient, perhaps it needs to do something a big more aggressive, such as trigger a reboot, but I would rather not do that because if a program is running during the disconnect, a reboot will disrupt the running program which is undesirable.