Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e909172

Browse filesBrowse files
authored
[WiFiSTA] Remove duplicate setting of SSID and password. (espressif#6825)
Done by function call of `wifi_sta_config`.
1 parent 2db7ded commit e909172
Copy full SHA for e909172

File tree

Expand file treeCollapse file tree

1 file changed

+0
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-5
lines changed

‎libraries/WiFi/src/WiFiSTA.cpp

Copy file name to clipboardExpand all lines: libraries/WiFi/src/WiFiSTA.cpp
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,6 @@ wl_status_t WiFiSTAClass::begin(const char* ssid, const char *passphrase, int32_
240240

241241
wifi_config_t conf;
242242
memset(&conf, 0, sizeof(wifi_config_t));
243-
_wifi_strncpy(reinterpret_cast<char*>(conf.sta.ssid), ssid, 32);
244-
245-
if(passphrase) {
246-
_wifi_strncpy(reinterpret_cast<char*>(conf.sta.password), passphrase, 64);
247-
}
248243

249244
wifi_sta_config(&conf, ssid, passphrase, bssid, channel, _minSecurity, _scanMethod, _sortMethod);
250245

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.