ericklein / air_quality

displays and logs local indoor and outdoor weather and air quality information
MIT License
0 stars 0 forks source link

Change WiFi reconnect time to <10 seconds #81

Closed ericklein closed 1 year ago

ericklein commented 1 year ago

WiFi error logs suggest that either we can't reach the desired AP at all, or the connect/disconnect error happens quickly. There is a common error case where the AP asks the device to reconnect in 1024ms.

This suggests that waiting 10 seconds between WiFi connect attempts does not increase the likelihood of a successful subsequent connection. Let's change it to 5 seconds and test. This will have the secondary benefit of ever so slightly reducing battery consumption.

ericklein commented 1 year ago

changed to 5