Page 1 of 1

Arduino_esp32 wifi error

Posted: Fri May 12, 2017 8:19 am
by khazi123
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
Screenshot (6).png
Screenshot (6).png (102.1 KiB) Viewed 8609 times

Re: Arduino_esp32 wifi error

Posted: Sat May 13, 2017 11:51 am
by stryker
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:

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
So it's easy to see it's choosing the right one. Is yours using the Espressif one?

Geoff

Re: Arduino_esp32 wifi error

Posted: Sat May 20, 2017 10:00 am
by khazi123
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.. :D