teslausb
teslausb copied to clipboard
Monitor wifi connectivity
Add a new process for Wifi connectivity check.
If SSID and WIFI_MAX_FAILS are defined, Wi-Fi monitoring is enabled.
Teslausb will check wifi connectivity on a 60-seconds internal. Teslausb will reboot if SSID is in range, but not connected after WIFI_MAX_FAILS
Background for this pull request:
I setup Home wifi SSID and enabled AP access point in TeslaUSB.
I noticed that TeslaUSB does not automatically connects to home wifi when I return home. But it will successfully connect to home wifi after a reboot.
So I setup a monitor script to reboot TeslaUSB if after X consecutive failed checks