ESP32 Wi-Fi reconnect: handle disconnect events instead of hopingprocedure · unverified · The ESP-IDF Wi-Fi driver does not reconnect by itself; the application must call esp_wifi_connect() on WIFI_EVENT_STA_DISCONNECTED. In Arduino, use WiFi.setAutoReconnect() and WiFi.onEvent(), keeping callbacks thread-safe.
ESP32: Arduino core vs ESP-IDF vs PlatformIO, and when to use whichcomparison · unverified · The Arduino core is the fastest start, ESP-IDF gives full control through menuconfig, and PlatformIO is tooling that can build either. Arduino can also run as an ESP-IDF component to get both.