Open shahidare opened 6 years ago
Same here on lolin d32
Compiling .pioenvs/lolin_d32/src/main.cpp.o In file included from src/main.cpp:21:0: lib/WIFIMANAGER-ESP32-master/WiFiManager.h:36:22: error: 'const char HTTP_HEAD []' redeclared as different kind of symbol const char HTTP_HEAD[] PROGMEM = "<!DOCTYPE html><html lang=\"en\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\"/>I was having the same HTTP_HEAD problem and the solution was simpler than it looked. I just edited the WiFiManager.h files and WifiManager.cpp replacing (HTTP_HEAD) with (HTTP_HEADER) and there was no more compilation problem.
I did that but then wifi manager was not functioning for me.
On Mon, 5 Nov 2018 at 2:51 PM, lacneto notifications@github.com wrote:
I was having the same HTTP_HEAD problem and the solution was simpler than it looked. I just edited the WiFiManager.h files and WifiManager.cpp replacing (HTTP_HEAD) with (HTTP_HEADER) and there was no more compilation problem.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zhouhan0126/WIFIMANAGER-ESP32/issues/22#issuecomment-435806609, or mute the thread https://github.com/notifications/unsubscribe-auth/AH98xaCtg1_OZk-YCu0JG87BNGisT1FRks5usAMOgaJpZM4X5ehr .
Do you using libraries WebServer and DNSServer the same autor? https://github.com/zhouhan0126/WebServer-esp32 https://github.com/zhouhan0126/DNSServer---esp32 Try it use this libraries together and see if working. For me to be working perfectly.
Regards
For now I am using asyc version and it is working. ( other than wifi reset )
I did tired the usual hacks but it doesn’t seem to be working. I am using Mac for the arduino. I believe I have to try it with other machines as I can see it has worked for many people.
Thank you for the help.
On Mon, 5 Nov 2018 at 4:25 PM, lacneto notifications@github.com wrote:
Do you using libraries WebServer and DNSServer the same autor? https://github.com/zhouhan0126/WebServer-esp32 https://github.com/zhouhan0126/DNSServer---esp32 Try it use this libraries together and see if working. For me to be working perfectly.
Regards
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zhouhan0126/WIFIMANAGER-ESP32/issues/22#issuecomment-435833945, or mute the thread https://github.com/notifications/unsubscribe-auth/AH98xQcUvLsdVze2c5KfaM4EqZz2Vzreks5usBkGgaJpZM4X5ehr .
@lacneto Thanks, It solved my problem
@lacneto HTTP_HEAD to HTTP_HEADER worked for me also. Thank you!
In the Arduino IDE i must edited the file "WiFiManager.h" as @lacneto said. But i don't understand why this appends.
In case someone uses Platform IO, you just edit the platformio.ini adding:
lib_deps =
https://github.com/zhouhan0126/WIFIMANAGER-ESP32.git
https://github.com/zhouhan0126/DNSServer---esp32.git
https://github.com/zhouhan0126/WebServer-esp32.git
just add to the HTTP_HEAD[] variable in WifiManager.h and replace HTTP_HEAD to HTTP_HEAD in WiFiManager.cpp. in arduino WifiManager library.
I was having the same HTTP_HEAD problem and the solution was simpler than it looked. I just edited the WiFiManager.h files and WifiManager.cpp replacing (HTTP_HEAD) with (HTTP_HEADER) and there was no more compilation problem.
Had to do this, also on an ESP8266, works now.
I was having the same HTTP_HEAD problem and the solution was simpler than it looked. I just edited the WiFiManager.h files and WifiManager.cpp replacing (HTTP_HEAD) with (HTTP_HEADER) and there was no more compilation problem.
It is very useful! thanks
It is very useful!
I was having the same HTTP_HEAD problem and the solution was simpler than it looked. I just edited the WiFiManager.h files and WifiManager.cpp replacing (HTTP_HEAD) with (HTTP_HEADER) and there was no more compilation problem.
After I did this it worked for me :)
Hi,
I am trying to run the Autoconnect example from the wifimanager esp32.
I am getting the following error:
In file included from /Users/Sid/Documents/Arduino/libraries/WIFIMANAGER-ESP32-master/examples/AutoConnect/AutoConnect.ino:14:0: /Users/Sid/Documents/Arduino/libraries/WIFIMANAGER-ESP32-master/WiFiManager.h:36:22: error: 'const char HTTP_HEAD []' redeclared as different kind of symbol const char HTTP_HEAD[] PROGMEM = "