ESP32 does not reconnect to Wi-Fi after a power outage

Asked about Other

ESP32 does not reconnect to Wi-Fi after a power outage

Answer

After an outage the router often boots slower than the ESP32. Do not give up after one attempt: retry in a loop with a timeout, call WiFi.setAutoReconnect(true) and restart the chip if there is no connection for several minutes. A watchdog on the router DC line is described in the Router watchdog project.

Parts for this solution

    AI-assisted answer, reviewed by a human. Not tested on every hardware revision.

    Ask an engineer / AI

    Leave a Comment