【问题标题】:WiFi.h with esp32WiFi.h 与 esp32
【发布时间】:2020-04-27 13:15:11
【问题描述】:

我是 esp32 的新手,我想在我的项目中使用 WiFi.h,但我不知道如何正确下载它。

我试图从这个 git hub 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

谢谢帮助

【问题讨论】:

  • esp32 的 WiFi 库是 esp32 Arduino 板包的一部分。不要单独安装。把#include <WiFi.h>放在你的草图中

标签: esp32


【解决方案1】:

如果您无法使用此库进行编译,则可能是您没有正确安装 Arduino 板包。 如果您手动安装它,我建议按照他们的 Github 中的说明重新安装: https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/boards_manager.md

另一方面,作为 Juraj cmets,

esp32 的 WiFi 库是 esp32 Arduino 板包的一部分。不要单独安装

希望你能按照官方说明编译。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-06-14
    • 2022-08-11
    • 1970-01-01
    • 2022-10-19
    • 1970-01-01
    • 1970-01-01
    • 2022-06-15
    • 1970-01-01
    相关资源
    最近更新 更多