Skip to content

Commit 28360f1

Browse files
committed
fixes esp8266#3793
wifi_softap_set_config always fails, password cannot be 0 unless authmode is open, no documentation found, trial and error.
1 parent 063c237 commit 28360f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: libraries/ESP8266WiFi/src/ESP8266WiFiAP.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ bool ESP8266WiFiAPClass::softAPdisconnect(bool wifioff) {
265265
struct softap_config conf;
266266
*conf.ssid = 0;
267267
*conf.password = 0;
268+
conf.authmode = AUTH_OPEN;
268269
ETS_UART_INTR_DISABLE();
269270
if(WiFi._persistent) {
270271
ret = wifi_softap_set_config(&conf);

0 commit comments

Comments
 (0)