mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-26 20:38:25 +00:00
fix Espressif deprecating ESP_IF_WIFI_STA and replacing it with WIFI_IF_STA (ugly)
This commit is contained in:
1 parent
6536ae9bcc
commit
03bfa3806b
1 file changed
+1
-1
@@ -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.ssid, sizeof(c.sta.ssid), "%s", ssid);
|
||||||
snprintf((char *) c.sta.password, sizeof(c.sta.password), "%s", pass);
|
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_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());
|
ESP_ERROR_CHECK(esp_wifi_start());
|
||||||
MG_DEBUG(("wifi_init_sta finished."));
|
MG_DEBUG(("wifi_init_sta finished."));
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user