Skip to content

Commit

Permalink
updated camera driver to lastest, fixed wifi settings to connecto to …
Browse files Browse the repository at this point in the history
…the strongest AP in case yuo have more of them (WIFI_ALL_CHANNEL_SCAN), and also allow all channels 1-13
  • Loading branch information
BugerDread committed Mar 15, 2021
1 parent 4029920 commit 0188266
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion main/app_wifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ static void wifi_init_sta(void) {
snprintf((char*)wifi_config.sta.password, 64, "%s", settings.wifi_password);
ESP_LOGI(TAG, "Connecting to AP SSID:%s password:%s",
wifi_config.sta.ssid, wifi_config.sta.password);

wifi_config.sta.scan_method = WIFI_ALL_CHANNEL_SCAN;

ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config) );

Expand Down Expand Up @@ -217,7 +219,7 @@ void app_wifi_startup() {
wifi_country_t wifi_country = {
.cc = "",
.schan = 1,
.nchan = 11,
.nchan = 13,
.max_tx_power = 78,
.policy = WIFI_COUNTRY_POLICY_AUTO
};
Expand Down

0 comments on commit 0188266

Please sign in to comment.