ESP32 WiFi reason 210: NO_AP_FOUND_W_COMPATIBLE_SECURITY
The ESP32 found an access point with your SSID, but its security configuration and the station's do not fit together. Espressif lists the combinations that cause it.
WIFI_REASON_NO_AP_FOUND_W_COMPATIBLE_SECURITY (210). Espressif's description: No AP found with compatible security.
The combinations Espressif lists
- An open network, and a password configured on the station, or the other way round.
- An Enterprise (802.1X) network without the Enterprise configuration on the station, or the reverse.
- WPA3: SAE-H2E or SAE-PK configured on the station that the access point does not offer, or H2E disabled for an access point that requires it.
- Protected Management Frames (PMF) required on one side and not supported on the other.
- WEP with a password that is not WEP-compliant.
- OWE-only networks, without OWE enabled on the station.
- Unsupported ciphers, or an access point in ad-hoc (IBSS) mode.
Fix
Compare the router's security mode with the station's wifi_config_t: threshold.authmode, pmf_cfg and sae_pwe_h2e. On mixed WPA2/WPA3 networks, a station set to WPA2-PSK is usually the easiest to get working.
Where you see the number
In ESP-IDF, the WIFI_EVENT_STA_DISCONNECTED event carries it: ((wifi_event_sta_disconnected_t *) event_data)->reason. In Arduino, the ARDUINO_EVENT_WIFI_STA_DISCONNECTED event has it in info.wifi_sta_disconnected.reason, and WiFi.disconnectReasonName() turns it into a name. Log it every time: the reason is what separates a wrong password from a weak signal.
When it happens at a customer's site
On your desk you see the reason in the log. On a device behind someone else's router you only hear that it "goes offline sometimes". Pinscope keeps the device's logs and its WiFi signal over time, so you can see which reason it disconnected with and whether the signal was dropping before it did. Free for three devices. Remote logging.
Related errors: WiFi reason 201: NO_AP_FOUND · WiFi reason 202: AUTH_FAIL · WiFi reason 15 / 204: handshake timeout · WiFi disconnect reasons. All ESP32 errors: the list. Reason codes and their meaning from Espressif's Wi-Fi Driver guide and esp_wifi_types.h.
More
- Remote access to an ESP32 without TLS: what it measured and what it costs
- Reaching an ESP32 web server from outside its network
- Updating ESP32 firmware over the internet, with rollback
- Guru Meditation Error: decoding the backtrace, and crashes from the field
- Remote logging: ESP_LOG without a serial cable
- Heap and stack monitoring in the field
- An ESP32 behind CGNAT, 4G or Starlink
- TLS memory usage on the ESP32, and how to reduce it
- Sharing an ESP32 sensor page with anyone, without port forwarding
- ArduinoOTA over the internet, with a rollback
- ESP32 remote access compared: port forwarding, ngrok, Cloudflare Tunnel, Tailscale
- esp_http_server slow? The 250 ms delay and the fix
- Before the first ESP32 ships: a field support checklist
- ESP32 exception decoder: a Guru Meditation backtrace to lines, in the browser