zhouhan0126 / WIFIMANAGER-ESP32

wifimanager-esp32
MIT License
401 stars 135 forks source link

ESP32 WiFiManager AutoConnect #30

Open HattonG opened 5 years ago

HattonG commented 5 years ago

Hello, I am new to the ESP32. I know that there is a WiFiManager for ESP8266 that works allowing Wifi connectivity by first creating an access point that can be connected to for the selection of the SSID that you want to use. This avoids defining the SSID and Password withing the sketch.

I can find various ESP32 versions of the WiFiManager library but everytime I try to use these I end up with the following error "error: 'const char HTTP_HEAD []' redeclared as different kind of symbol"

I can see other people have experienced this problem and have raised the issue. Unfortunately I have been unable to Identify if anyone has found a reliable cure for the issue.

Apologies if This is in the wrong forum or area but I would be grateful if anyone could help or at least tell me if the issue has been resolved or is it still outstanding

Regards Xeon

LukasAV commented 5 years ago

Hi, I also had this issue. I do not know what exactly caused the problem, but I could resolve my issue by manually renaming HTTP_HEAD in the .h and .cpp file, eg. to HTTP_HEAD2. Not a satisfying solution but it works. This is also the offered solution at the end of this thread