Problem with ESP32 as Access Point

franck.bigrat
Posts: 1
Joined: Sat Nov 16, 2024 11:45 am

Problem with ESP32 as Access Point

Postby franck.bigrat » Sat Nov 16, 2024 12:19 pm

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

Who is online

Users browsing this forum: No registered users and 73 guests