Skip to content

Commit 0188266

Browse files
committed
updated camera driver to lastest, fixed wifi settings to connecto to the strongest AP in case yuo have more of them (WIFI_ALL_CHANNEL_SCAN), and also allow all channels 1-13
1 parent 4029920 commit 0188266

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

main/app_wifi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ static void wifi_init_sta(void) {
121121
snprintf((char*)wifi_config.sta.password, 64, "%s", settings.wifi_password);
122122
ESP_LOGI(TAG, "Connecting to AP SSID:%s password:%s",
123123
wifi_config.sta.ssid, wifi_config.sta.password);
124+
125+
wifi_config.sta.scan_method = WIFI_ALL_CHANNEL_SCAN;
124126

125127
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config) );
126128

@@ -217,7 +219,7 @@ void app_wifi_startup() {
217219
wifi_country_t wifi_country = {
218220
.cc = "",
219221
.schan = 1,
220-
.nchan = 11,
222+
.nchan = 13,
221223
.max_tx_power = 78,
222224
.policy = WIFI_COUNTRY_POLICY_AUTO
223225
};

0 commit comments

Comments
 (0)