WiFi.h 使用 esp32
WiFi.h with esp32
我是 esp32 的新手,我想在我的项目中使用 WiFi.h,但我不知道如何正确下载它。
我试图从这个 git 中心下载文件 https://github.com/espressif/arduinoesp32/tree/master/libraries/WiFi
但是我得到这个错误
In file included from sketch\WiFiSTA.h:28:0,
from sketch\WiFi.h:32,
from C:\Users\User\Documents\Arduino\wifi\wifi.ino:1:
sketch\WiFiGeneric.h:31:39: fatal error: wifi_provisioning/manager.h: No such file or directory
compilation terminated.
exit status 1
error compiling for board ESP32 Wrover Module
谢谢帮助
如果您无法使用该库进行编译,可能是您没有正确安装Arduino板包。
如果您手动安装它,我建议按照他们的 Github 中的说明重新安装:
https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/boards_manager.md
另一方面,正如 Juraj 评论的那样,
the WiFi library for esp32 is part of the esp32 Arduino boards package. don't install it separately
希望大家按照官方说明进行编译
我是 esp32 的新手,我想在我的项目中使用 WiFi.h,但我不知道如何正确下载它。
我试图从这个 git 中心下载文件 https://github.com/espressif/arduinoesp32/tree/master/libraries/WiFi
但是我得到这个错误
In file included from sketch\WiFiSTA.h:28:0,
from sketch\WiFi.h:32,
from C:\Users\User\Documents\Arduino\wifi\wifi.ino:1:
sketch\WiFiGeneric.h:31:39: fatal error: wifi_provisioning/manager.h: No such file or directory
compilation terminated.
exit status 1
error compiling for board ESP32 Wrover Module
谢谢帮助
如果您无法使用该库进行编译,可能是您没有正确安装Arduino板包。 如果您手动安装它,我建议按照他们的 Github 中的说明重新安装: https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/boards_manager.md
另一方面,正如 Juraj 评论的那样,
the WiFi library for esp32 is part of the esp32 Arduino boards package. don't install it separately
希望大家按照官方说明进行编译