Again, this one has been well addressed but no solution apparent to me.
Using Uno Wifi Rev.2 board
I’m trying to persuade the Windows 10 Arduino IDE App to load the
#include <WifiNINA.h> // so I can ping localServers and webHosts
but instead the compiler says:
Arduino_UNO_WiFi_VM:120:28: error: ‘class WiFiClass’ has no member named ‘ping’
localserverResult = WiFi.ping(localServer);
^~~~
Multiple libraries were found for “WiFi.h” (which BTW, I commented out so don’t know how it even sees WiFi.h)
Used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\WiFi
Not used: C:\Users\Dana\OneDrive\Documents\Arduino\libraries\WiFiNINA
exit status 1
‘class WiFiClass’ has no member named ‘ping’
It’s loading it’s own library instead of the one I want loaded. So I tried to find and delete the one it’s loading by navigating to the location where the file is located. However WindowsApps is a hidden file and protected against me as System Administrator from even read access. So I can’t delete the library. I found a post from Pert instructing to put in the path name. None of these #include work:
#include
“C:\Users\Dana\OneDrive\Documents\Arduino\libraries\WiFiNINA”
“C:\Users\Dana\OneDrive\Documents\Arduino\libraries\WiFiNINA\examples”
“C:\Users\Dana\OneDrive\Documents\Arduino\libraries\WiFiNINA\examples\WiFiPing”
“C:\Users\Dana\OneDrive\Documents\Arduino\libraries\WiFiNINA\examples\WiFiPing\arduino_secrets.h”
How do I force the IDE to choose the library I want?
Also tried to move the WiFiNINA library to the default library but having trouble with permission. It won’t let me write to the default libraries even after I changed all the permissions I dare to change to Full Access for almost every class of user.
Then I tried to point the IDE to a different folder to look for libraries. Also not possible apparently. I see not a way in the IDE or in Preferences to have it look in a different folder for libraries.