tonyp7 / esp32-wifi-manager

Captive Portal for ESP32 that can connect to a saved wireless network or start an access point where you can connect to existing wifis.
MIT License
664 stars 217 forks source link

Fast scan and its implication #37

Closed snahmad closed 5 years ago

snahmad commented 5 years ago

// configure the softAP and start it */ wifi_config_t ap_config; ap_config.ap.ssid_len = 0; ap_config.ap.channel = wifi_settings.ap_channel; ap_config.ap.authmode = (wifi_auth_mode_t)wifi_settings.ap_authmode; ap_config.ap.ssid_hidden = wifi_settings.ap_ssid_hidden; ap_config.ap.max_connection = AP_MAX_CONNECTIONS; ap_config.ap.beacon_interval = AP_BEACON_INTERVAL; memcpy(ap_config.ap.ssid, wifi_settings.ap_ssid, sizeof(__wifi_settings.ap_ssid)); memcpy(ap_config.ap.password, wifi_settings.ap_pwd, sizeof(wifi_settings.ap_pwd)); ap_config.sta.scan_method = WIFI_FAST_SCAN;

ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_AP, &ap_config));
ESP_ERROR_CHECK(esp_wifi_start());
tonyp7 commented 5 years ago

I don't understand what you're trying to report?

snahmad commented 5 years ago

What is purpose of WIFI_FAST_SCAN as compare all scan.

tonyp7 commented 5 years ago

This has nothing to do with the manager, you can read the doc here: https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/network/esp_wifi.html