eg/perf:modify README.

This commit is contained in:
chenyudong
2017-03-23 16:36:32 +08:00
parent 8a163e3db0
commit e261e16981
7 changed files with 154 additions and 51 deletions

View File

@@ -87,6 +87,9 @@ void wifi_init_softap()
.authmode=WIFI_AUTH_WPA_WPA2_PSK
},
};
if (strlen(DEFAULT_PWD) ==0) {
wifi_config.ap.authmode = WIFI_AUTH_OPEN;
}
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_AP));
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_AP, &wifi_config));