Skip to content

Commit 66e2bd0

Browse files
committed
ESP8266WiFi: initialise new STA configuration fields
1 parent cd6cd85 commit 66e2bd0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ wl_status_t ESP8266WiFiSTAClass::begin(const char* ssid, const char *passphrase,
126126
*conf.password = 0;
127127
}
128128

129+
conf.threshold.rssi = -127;
130+
131+
// TODO(#909): set authmode to AUTH_WPA_PSK if passphrase is provided
132+
conf.threshold.authmode = AUTH_OPEN;
133+
129134
if(bssid) {
130135
conf.bssid_set = 1;
131136
memcpy((void *) &conf.bssid[0], (void *) bssid, 6);

0 commit comments

Comments
 (0)