ESP32: Keep WiFi connection alive with a FreeRTOS task

from blog Simply Explained, | ↗ original
I have a few ESP32's running in my house. A few of them are running 24/7 and require an always-on WiFi connection. That's been quite tricky to implement. I used to include various checks throughout my code, but that's not scalable.What I need is something running in the background that is continuously monitoring my WiFi connection, regardless o...