6103| 3
|
[已解决] firebeetle-esp32 example错误 |
最近刚买了一个firebeetle-esp32的板子,准备编译自带的例子,WiFiClient,就出现的错误。 Arduino: 1.8.5 (Windows 10), Board: "FireBeetle-ESP32, 80MHz, 921600" WARNING: library SPI claims to run on (esp32) architecture(s) and may be incompatible with your current board which runs on (DFRobot_FireBeetle-ESP32) architecture(s). <command-line>:0:32: warning: ISO C++11 requires whitespace after the macro name C:\Users\msi-\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.7\libraries\WiFi\examples\WiFiClient\WiFiClient.ino: In function 'void setup()': WiFiClient:30: error: invalid conversion from 'const char*' to 'char*' [-fpermissive] WiFi.begin(ssid, password); ^ In file included from C:\Users\msi-\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.7\libraries\WiFi\examples\WiFiClient\WiFiClient.ino:9:0: C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:79:9: note: initializing argument 1 of 'int WiFiClass::begin(char*, const char*)' int begin(char* ssid, const char *passphrase); ^ Multiple libraries were found for "WiFi.h" Used: C:\Program Files (x86)\Arduino\libraries\WiFi Not used: C:\Users\msi-\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.7\libraries\WiFi exit status 1 invalid conversion from 'const char*' to 'char*' [-fpermissive] This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. esp32自带的库和官方库重名,请问各位大牛这个该如何解决?提前谢谢。 |
你的解释我试过,这个虽然能编译过,其他几个例子就过不去了,两个库wifi.h里面class实现是不一样的。理论上要用红色标记的esp32自带的库。 Multiple libraries were found for "WiFi.h" Used: C:\Program Files (x86)\Arduino\libraries\WiFi Not used: C:\Users\msi-\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.7\libraries\WiFi |
© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed