-
Notifications
You must be signed in to change notification settings - Fork 7.6k
WiFi.h conflicts with official Arduino WiFi lib #599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@Testato Can you provide more of the error output. What you are providing is not an error, it is just telling you which file was chosen when multiple options were present. |
but the Wi.Fi.h not used is the Official Arduino ones, so you always have it on your PC. |
I am not sure what you mean about the WiFi.h not being used. Please clarify. We will need more information from the error output that you are seeing in order to help. |
@Testato the used library is the correct one for ESP32. as @lonerzzz say, it's something else causing the error, so please provide more output logs |
i tried to recreate the problem but it now work. |
I also get this problem rarely ( maybe 1 every 500 compiles), but it is more likely that it is something from arduino IDE than ESP32 core |
i had the same problem, but solved it by not including #include <Arduino.h> in the sketch |
I found this while experiencing similar problem. my code #include <NTPClient.h> #define NTP_OFFSET -3 * 60 * 60 // In seconds WiFiUDP ntpUDP; void setup() my error log uild options changed, rebuilding all C:\Users\username\AppData\Local\Temp\arduino_build_395865/arduino.ar(main.cpp.o): In function `loopTask(void*)': C:\Users\username\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.0-rc2\cores\esp32/main.cpp:15: undefined reference to `loop()' collect2.exe: error: ld returned 1 exit status Multiple libraries were found for "WiFi.h" nb: I had to install library NTPClient for above by comparison, this sketch below (also using Wifi.h) does not experience any problems during loading. #include <SPI.h> char ssid[] = "foo"; // your network SSID (name) int status = WL_IDLE_STATUS; WiFiServer server(80); void setup() { // attempt to connect to Wifi network:
} void loop() { void printWifiStatus() { // print your WiFi shield's IP address: // print the received signal strength: |
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\WiFi i had this error, but i have installed the esp32 kit |
The text was updated successfully, but these errors were encountered: