Skip to content

Commit 83e4de5

Browse files
rtrbtMattiasTF
authored andcommitted
wifi: set STA failure_retry_cnt to 3.
See Tinkerforge/esp32-firmware#234
1 parent 14517ce commit 83e4de5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/WiFi/src/STA.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ bool STAClass::connect(const char *ssid, const char *passphrase, int32_t channel
385385
conf.sta.sort_method = _sortMethod;
386386
conf.sta.threshold.rssi = -127;
387387
conf.sta.pmf_cfg.capable = true;
388+
conf.sta.failure_retry_cnt = 3;
388389
if (ssid != NULL && ssid[0] != 0) {
389390
_wifi_strncpy((char *)conf.sta.ssid, ssid, 32);
390391
if (passphrase != NULL && passphrase[0] != 0) {

0 commit comments

Comments
 (0)