Skip to content

Commit a477d2a

Browse files
authored
Update station config when there is no bssid
Update station config when there is no bssid
1 parent a7cec02 commit a477d2a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/WiFi/src/STA.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,9 @@ bool STAClass::connect(const char *ssid, const char *passphrase, int32_t channel
396396
conf.sta.bssid_set = 1;
397397
memcpy(conf.sta.bssid, bssid, 6);
398398
}
399+
else {
400+
conf.sta.bssid_set = 0;
401+
}
399402
}
400403

401404
esp_err_t err = esp_wifi_set_config(WIFI_IF_STA, &conf);

0 commit comments

Comments
 (0)