Merge pull request #3299 from cesanta/tests

fix Espressif deprecating ESP_IF_WIFI_STA and replacing it with WIFI_…
This commit is contained in:
Sergio R. Caprile authored and GitHub committed 2025-10-08 10:44:06 -03:00
commit 2d399107fb
1 file changed
+1 -1
+1 -1
View File
@@ -81,7 +81,7 @@ bool wifi_init(const char *ssid, const char *pass) {
snprintf((char *) c.sta.ssid, sizeof(c.sta.ssid), "%s", ssid);
snprintf((char *) c.sta.password, sizeof(c.sta.password), "%s", pass);
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA));
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &c));
ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_STA, &c));
ESP_ERROR_CHECK(esp_wifi_start());
MG_DEBUG(("wifi_init_sta finished."));