如何修复 ESP32 fatal error: ESP8266WiFi.h: No such file or directory
问题:
尝试编译你的 ESP32 应用程序时,你看到此编译器错误:
main.cpp
fatal error: ESP8266WiFi.h: No such file or directory解决方案
ESP8266WiFi.h 是 ESP8266 的 Wifi 头文件。对于 ESP32,它名为 WiFi.h。为了修复此问题,替换
main.cpp
#include <ESP8266WiFi.h>by
main.cpp
#include <WiFi.h>Check out similar posts by category:
C/C++, Embedded, 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