Skip to content

Commit f6a4b02

Browse files
tablatronixme-no-dev
authored andcommitted
1 parent 25dff4f commit f6a4b02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/WiFi/src/WiFiAP.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,9 @@ bool WiFiAPClass::softAPdisconnect(bool wifioff)
184184
{
185185
bool ret;
186186
wifi_config_t conf;
187-
*conf.ap.ssid = 0;
187+
*conf.ap.ssid = 0;
188188
*conf.ap.password = 0;
189+
conf.ap.authmode = WIFI_AUTH_OPEN; // auth must be open if pass=0
189190
ret = esp_wifi_set_config(WIFI_IF_AP, &conf) == ESP_OK;
190191

191192
if(wifioff) {

0 commit comments

Comments
 (0)