Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By EspAnge
#62844 Hello,

I use different ESP8266 and many times I have troubles to use/change SSID.

In the last time I have a module which is previously initialized with SSID "Toto" without password.

I try to change it to somthing else. And ... nothing the Esp is always with the same SSID

Here the code I use

WiFi.softAP("tutututu", "123456"); //ssid_wifi.c_str(), password_wifi.c_str());
WiFi.begin ();

IPAddress local_ip = IPAddress(10, 0, 0, 1);
IPAddress gateway_ip = IPAddress(10, 0, 0, 1);
IPAddress subnet_ip = IPAddress(255, 255, 255, 0);
WiFi.softAPConfig(local_ip, gateway_ip, subnet_ip);

AdresseUDP = WiFi.softAPIP(); // find my local IP address
AdresseUDP[3] = 255; // Set last octet to 255 for Class C broadcast address of this subnet

TRACE_LN("OK");
IPAddress myIP = WiFi.softAPIP();
TRACE(F("Wifi @ server: "));
TRACE_LN(myIP);

I try WiFi.begin() and without.

What could be wrong ?

How to change the SSID ?

THanks