This commit is contained in:
Shawn A 2018-04-06 11:02:21 -05:00 committed by Me No Dev
parent 25dff4f044
commit f6a4b024c7

View File

@ -186,6 +186,7 @@ bool WiFiAPClass::softAPdisconnect(bool wifioff)
wifi_config_t conf; wifi_config_t conf;
*conf.ap.ssid = 0; *conf.ap.ssid = 0;
*conf.ap.password = 0; *conf.ap.password = 0;
conf.ap.authmode = WIFI_AUTH_OPEN; // auth must be open if pass=0
ret = esp_wifi_set_config(WIFI_IF_AP, &conf) == ESP_OK; ret = esp_wifi_set_config(WIFI_IF_AP, &conf) == ESP_OK;
if(wifioff) { if(wifioff) {