Now SmartConfig works! (#807)
* little fix to WiFiSTA.cpp Now SmartConfig works! Tested on ESP32 * little fix to WiFiSTA.cpp Now SmartConfig works! Tested on ESP32
This commit is contained in:
parent
1b994d54be
commit
47cdfff475
@ -625,6 +625,7 @@ void WiFiSTAClass::_smartConfigCallback(uint32_t st, void* result) {
|
||||
} else if (status == SC_STATUS_LINK) {
|
||||
wifi_sta_config_t *sta_conf = reinterpret_cast<wifi_sta_config_t *>(result);
|
||||
log_d("SSID: %s", (char *)(sta_conf->ssid));
|
||||
sta_conf->bssid_set = 0;
|
||||
esp_wifi_set_config(WIFI_IF_STA, (wifi_config_t *)sta_conf);
|
||||
esp_wifi_connect();
|
||||
_smartConfigDone = true;
|
||||
|
Loading…
Reference in New Issue
Block a user