hi,
I have added esp32 libraries to Arduino, after running the example code wifiscan i am getting error..
Some people suggested that there is another file with the same name (wifi.h) in arduino which might be the reason. They asked me to change the name of wifi.h headder file to esp32wifi.h but i would like to know how to change it in library files??
I have attached the snapshot.
Thanks
Arduino_esp32 wifi error
Re: Arduino_esp32 wifi error
Hi,
It's not unusual to have multiple versions of the file with that name. What you don't show in your screen cap is which one it's choosing. For example, when I compile that same example sketch it says near the end of compilation:So it's easy to see it's choosing the right one. Is yours using the Espressif one?
Geoff
It's not unusual to have multiple versions of the file with that name. What you don't show in your screen cap is which one it's choosing. For example, when I compile that same example sketch it says near the end of compilation:
Code: Select all
Multiple libraries were found for "WiFi.h"
Used: D:\Documents\Arduino\hardware\espressif\esp32\libraries\WiFi
Not used: D:\Documents\Arduino\libraries\WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
Geoff
Re: Arduino_esp32 wifi error
Hello,
Thanks for your suggestion, actually it was contradicting with arduino 'WiFi.h' header file. Upon compiling the code it was directing/accessing the WiFi.h of arduino library but i renamed it to WiFi_ard.h and now it is accessing espressif WiFi.h and working fine.
Thanks again..
Thanks for your suggestion, actually it was contradicting with arduino 'WiFi.h' header file. Upon compiling the code it was directing/accessing the WiFi.h of arduino library but i renamed it to WiFi_ard.h and now it is accessing espressif WiFi.h and working fine.
Thanks again..
Who is online
Users browsing this forum: No registered users and 136 guests