Skip to content

Commit

Permalink
Update cores/beken-72xx/arduino/libraries/WiFi/WiFiSTA.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba2k2 authored Jan 3, 2024
1 parent f3926b2 commit a7296e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cores/beken-72xx/arduino/libraries/WiFi/WiFiSTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ bool WiFiClass::reconnect(const uint8_t *bssid) {

LT_DM(WIFI, "Data = %p", DATA->configSta);

if (bssid)
memcpy(STA_ADV_CFG.ap_info.bssid, bssid, 6);
else
memset(STA_CFG.wifi_bssid, 0x00, 6);

if (STA_CFG.dhcp_mode == DHCP_DISABLE) {
LT_DM(WIFI, "Static IP: %s / %s / %s", STA_CFG.local_ip_addr, STA_CFG.net_mask, STA_CFG.gateway_ip_addr);
LT_DM(WIFI, "Static DNS: %s", STA_CFG.dns_server_ip_addr);
Expand Down

0 comments on commit a7296e8

Please sign in to comment.