Sorun:
Şu gibi kod kullanarak ESP-IDF uygulamanızı derlemeye çalışırken:
esp_wifi_set_config_error.cpp
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config));şöyle bir hata mesajı görürsünüz:
espidf_error_build_output.txt
src/main.cpp:76:41: error: cannot convert 'esp_interface_t' to 'wifi_interface_t'
76 | ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config));
| ^~~~~~~~~~~~~~~
| |
| esp_interface_tÇözüm
ESP_IF_WIFI_STA yerine WIFI_IF_STA kullanın (doğru tipe sahiptir):
esp_wifi_set_config_fix.cpp
ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_STA, &wifi_config));
Check out similar posts by category:
C/C++ ESP8266/ESP32
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow