WiFiManager: error: 'class ESP8266WebServer' has no member named 'hostHeader'
Hi! Excellent library, thanks for sharing!
Although, I’m not able to compile it. I’m in a Mac using the original Arduino IDE and installed the ESP8266 libraries following the steps at: https://github.com/esp8266/Arduino
Then, I’ve added this library, but when I try to compile the example called «AutoConnect» I get this error:
Arduino: 1.6.5 (Mac OS X), Board: "Generic ESP8266 Module, Serial, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS)"
/Users/matto/Documents/Arduino/libraries/WiFiManager-master/WiFiManager.cpp: In member function 'boolean WiFiManager::captivePortal()':
/Users/matto/Documents/Arduino/libraries/WiFiManager-master/WiFiManager.cpp:384:20: error: 'class ESP8266WebServer' has no member named 'hostHeader'
if (!isIp(server.hostHeader()) ) {
^
/Users/matto/Documents/Arduino/libraries/WiFiManager-master/WiFiManager.cpp:386:82: error: 'class WiFiClient' has no member named 'localIP'
server.sendHeader("Location", String("http://") + toStringIp(server.client().localIP()), true);
^
Error compiling.
I’ve seen a guy with the same issue at: http://www.esp8266.com/viewtopic.php?p=29587&sid=0ab2ce98b8ece51d93ae1806a5aaa92c#p29587
Any advice? Thanks again and keep up the good work 😃
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 16 (6 by maintainers)
hi, i think you need to do this then:
http://arduino.esp8266.com/stable/package_esp8266com_index.json
withhttp://arduino.esp8266.com/staging/package_esp8266com_index.json
i hope this works for you
Hi there I did what tzapu commented on 26 Nov 2015 and since then the Arduino IDE doesn’t know the nodemcuv2 board anymore. I can’t compile and upload any code since I made the changes.
Error:
Board nodemcuv2 (plattform esp8266, paket esp8266) unknown.
Any idea?
Thanks Chris