TheThingsProducts / gateway

The Things Kickstarter Gateway
https://www.thethingsindustries.com/docs/gateways/models/thethingskickstartergateway
55 stars 20 forks source link

Fix: Prevented WiFi from moving to AP mode in case the connection breaks #26

Closed KrishnaIyer closed 6 years ago

KrishnaIyer commented 6 years ago

When using only WiFi, if the connection breaks, the current design is to put the the WiFi to AP Mode for a while (min 120 sec) before checking if the connection has recovered. There is no need to go to AP mode when there is valid WiFi config. We can do that by manually erasing the WiFi config.

martinichka commented 6 years ago

I agree that the fallback to AP mode is not needed if no 'internet' is detected. This feature did not serve it purpose.

@KrishnaIyer Please check my commit commets.

The only reasons to switch to AP mode are:

In that case switching to AP can be forced by pressing the reset button for 2 seconds (wiping the WiFi config).