Arduino_esp32 wifi error

khazi123
Posts: 4
Joined: Mon May 08, 2017 9:41 am

Arduino_esp32 wifi error

Postby khazi123 » Fri May 12, 2017 8:19 am

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 8646 times

User avatar
stryker
Posts: 5
Joined: Sat Apr 08, 2017 4:48 am

Re: Arduino_esp32 wifi error

Postby stryker » Sat May 13, 2017 11:51 am

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

khazi123
Posts: 4
Joined: Mon May 08, 2017 9:41 am

Re: Arduino_esp32 wifi error

Postby khazi123 » Sat May 20, 2017 10:00 am

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

Who is online

Users browsing this forum: No registered users and 91 guests