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

Moderator: igrr

User avatar
By BlazU
#68288 Hello,
I have an ESP8266 configured as an access point, which further exposes a web server. On the exposed web page, the user can enter the SSID and password of the target WiFi, which will then be used to send data. I need to test the target WiFi connectivity and then reply a summary page. To test the target WiFi, I call WiFi.begin(SSID, pass), but when I do this, the current access point closes and the summary page cannot be returned.

Some snippets:

//create AP
WiFi->softAPConfig(ipAddress, ipAddress, IPAddress(255, 255, 255, 0));
WiFi->softAP(ssid, password);

//create web server
_webServer = ESP8266WebServer(80);
_webServer.on("/", provisioningModeLogic);

//get data from web page

//test for wifi connectivity
bool wiFiConnectionOK = false;
_WiFi.begin(ssid, password); //ACCESS POINT DISCONNECTS HERE!
if (_WiFi.status() == WL_CONNECTED)
wiFiConnectionOK = true;

//return summary page
_webServer.send(200, "text/html", summaryHTMLString);

Is this a bug or am I doing something wrong? The ESP8266 should be able to work as AP and STA simultaneously.

Thanky and kind regards,