esp_wifi_set_config() returns ESP_ERR_WIFI_PASSWORD

MatsWebjorn
Posts: 1
Joined: Wed Jul 30, 2025 5:26 pm

esp_wifi_set_config() returns ESP_ERR_WIFI_PASSWORD

Postby MatsWebjorn » Wed Jul 30, 2025 8:50 pm

I've created a project based on v5.4.2\esp-idf\examples\wifi\getting_started\softAP. Using the default configuration the samlpe works fine. But when I change the Wifi password to "vargen" esp_wifi_set_config() fails with ESP_ERR_WIFI_PASSWORD.
Unfortunately esp_wifi_set_config() is not available in source so I can't step into the code to see why it fails.
After several tests it turns out that password must have at least 8 characters. But where is this defined? And how come that menuconfig has checks for length?

nopnop2002
Posts: 362
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

Re: esp_wifi_set_config() returns ESP_ERR_WIFI_PASSWORD

Postby nopnop2002 » Fri Aug 01, 2025 5:51 am

The WPA2 security protocol mandates a minimum password length of 8 characters.

Who is online

Users browsing this forum: Applebot, Baidu [Spider], PetalBot and 3 guests