Skip to content

Commit

Permalink
WIFI_CONNECT_AP_BY_SIGNAL
Browse files Browse the repository at this point in the history
  • Loading branch information
karawin committed Mar 12, 2021
1 parent d7487a4 commit 9c5eb1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/app_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,8 @@ static void start_wifi()
wifi_config_t wifi_config = {
.sta = {
.bssid_set = 0,
},
.scan_method = WIFI_ALL_CHANNEL_SCAN,
.sort_method = WIFI_CONNECT_AP_BY_SIGNAL, },
};
strcpy((char*)wifi_config.sta.ssid,ssid);
strcpy((char*)wifi_config.sta.password,pass);
Expand Down

0 comments on commit 9c5eb1f

Please sign in to comment.