balena-os/wifi-connect

Reopen access point when connection lost

Opened this issue · 2 comments

Reopen the Wifi Connect AP when the wifi connection is lost. This feature would be useful if someone decided to use a different wifi connection in the event they change locations or the previous wifi connection permanently fails.

Indeed, right now the only way for doing this is relaunching the application (e.g. when the application container is restarted when running on top of resinOS using approach as in our new start script). This should work for the case where the location is changed and the device is rebooted, but not for others.

Making improvements towards better permanent connectivity is on our roadmap for sure, but there are not any concrete details yet that I can provide.

For now an one way would be to launch a separate background process which periodically checks for the wireless connectivity state and launches the application if needed. I will try to find time in the near future to getting something like that implemented and added to our scripts folder.