Hardware:
Board: Adafruit HUZZAH32
Core Installation/update date: IDF & Arduino up to date
IDE name: PlatformIO
Flash Frequency: 40Mhz
Upload Speed: 115200
Description
I have an application that uses 2 FreeRTOS tasks. One of these tasks will eventually act as a server that clients connect to.
I attempted to implement auto reconnect to WiFi. To test this I uploaded my code, ensured the ESP32 connected to WiFi, unplugged my router from the wall, waited a few minutes, and plugged it back in.
It appears that while my router is disconnected the return value from WiFi.status() was WL_CONNECTED (3) which indicated the ESP32 thinks it's still connected to WiFi. I have waited for as long as 10 minutes and the WiFi status did not update.
I know my WiFi didn't work because all of my other devices couldn't connect.
Hardware: Board: Adafruit HUZZAH32 Core Installation/update date: IDF & Arduino up to date IDE name: PlatformIO Flash Frequency: 40Mhz Upload Speed: 115200
Description I have an application that uses 2 FreeRTOS tasks. One of these tasks will eventually act as a server that clients connect to.
I attempted to implement auto reconnect to WiFi. To test this I uploaded my code, ensured the ESP32 connected to WiFi, unplugged my router from the wall, waited a few minutes, and plugged it back in.
It appears that while my router is disconnected the return value from WiFi.status() was WL_CONNECTED (3) which indicated the ESP32 thinks it's still connected to WiFi. I have waited for as long as 10 minutes and the WiFi status did not update.
I know my WiFi didn't work because all of my other devices couldn't connect.
Code: