Two libraries with the same name

i have an uno and an esp32 and the ide comes with wifi preinstalled which doesnt work on esp 32 so i need 2 librarys named wifi which the ide doesnt like

The esp32 core for Arduino contains its own wifi library and it should be selected by the IDE when compiling for that device.

In the ide under File>Preferences check "show verbose output during compilation".

Compile a blank sketch with #include <WiFi.h> and report the complete message. It should say which library is being used.

At the bottom of the compilation report you should see this showing correct library selection.

Multiple libraries were found for "WiFi.h"
Used: C:\Users\YourName\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9\libraries\WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
Not used: C:\Users\YourName\Documents\Arduino\libraries\WiFiNINA
Using library WiFi at version 2.0.0 in folder: C:\Users\YourName\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9\libraries\WiFi

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.