Page 1 of 1

Problem with ESP32 as Access Point

Posted: Sat Nov 16, 2024 12:19 pm
by franck.bigrat
Hi programmers

I try to set my esp32c6 as as AP using Arduino IDE, but when i use the code below , "WiFi.softAP" returns 'false' and the AP is invisible :

//esp32 as AP
WiFi.mode(WIFI_AP);
WiFi.softAPConfig(local_IP, gateway, subnet);
WiFi.softAP(ssid, password);

But when i use this code (i remove the 'passwod' parameter), "WiFi.softAP" returns 'true' and the AP is visible:

//esp32 as AP
WiFi.mode(WIFI_AP);
WiFi.softAPConfig(local_IP, gateway, subnet);
WiFi.softAP(ssid);

Same issue with an esp32.

I recently updated the esp32 board manager and, oddily, the 1st code worked perfectly with esp32 and a previous version (2.0.7).
So my question is : Is there a bug with the "WiFi" Librarry and "softAP" method in recent updates, and if yes, is there a solution ?

Thanks