zhouhan0126 / WIFIMANAGER-ESP32

wifimanager-esp32
MIT License
401 stars 135 forks source link

I have a compilation issue, with this library #11

Open GhassanYusuf opened 6 years ago

GhassanYusuf commented 6 years ago

Dear Friends

good day to you, i have a problem, when trying to compile the code from example files. plz help

2018-06-29_15h10_19

karan6190 commented 6 years ago

hey GhassanYusuf, you have 2 different WiFi.h header file in your lib folder kindly deletes one. actually what happens is whenever you compile your code, it will search for all the headers mentioned and if it find duplicates then throws the error (as it gets confused which header file should be used)

GhassanYusuf commented 6 years ago

does both header files have the same functions, because it get confused with esp32 and the arduino native WiFi library. so in future if i am using a different board, maybe it will not work.

karan6190 commented 6 years ago

It's not specific to Esp32 and both the header file may have different functionality but names are same, but in your case, you just want Wifi.h for turning its wifi module on, so it's good to take it from espressiff\esp32.

And the above error is because you don't have WebServer lib. just download https://github.com/bbx10/WebServer_tng and extract in your lib folder

GhassanYusuf commented 6 years ago

Wow, thanks @karan6190 it works now, wohoo