relax wifi connect parameters for more reliable wifi connection
This commit is contained in:
@@ -577,6 +577,10 @@ impl Esp<'_> {
|
|||||||
let client_config = StationConfig::default()
|
let client_config = StationConfig::default()
|
||||||
.with_ssid(ssid)
|
.with_ssid(ssid)
|
||||||
.with_auth_method(auth_method)
|
.with_auth_method(auth_method)
|
||||||
|
.with_scan_method(esp_radio::wifi::sta::ScanMethod::AllChannels)
|
||||||
|
.with_listen_interval(10)
|
||||||
|
.with_beacon_timeout(10)
|
||||||
|
.with_failure_retry_cnt(3)
|
||||||
.with_password(password);
|
.with_password(password);
|
||||||
|
|
||||||
self.controller
|
self.controller
|
||||||
|
|||||||
Reference in New Issue
Block a user