[GH-ISSUE #12] compilation troubles #11

Closed
opened 2026-02-28 01:22:51 +03:00 by kerem · 5 comments
Owner

Originally created by @velectris on GitHub (Nov 16, 2015).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/12

Hi,

Nice job !
i'm trying to compile on arduino ide 1.6.5 and have the following result

Arduino: 1.6.5 (Windows 8.1), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200"

C:\Users\pascal\Documents\Arduino\libraries\WiFiManager-master\WiFiManager.cpp: In member function 'boolean WiFiManager::captivePortal()':
C:\Users\pascal\Documents\Arduino\libraries\WiFiManager-master\WiFiManager.cpp:405:20: error: 'class ESP8266WebServer' has no member named 'hostHeader'
if (!isIp(server.hostHeader()) ) {
^
C:\Users\pascal\Documents\Arduino\libraries\WiFiManager-master\WiFiManager.cpp:407:82: error: 'class WiFiClient' has no member named 'localIP'
server.sendHeader("Location", String("http://") + toStringIp(server.client().localIP()), true);
^
Error compiling.

Have you an idea of the real source of hostheader / localip compilation problem ?

THX on advance for any help !
Cheers .

Originally created by @velectris on GitHub (Nov 16, 2015). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/12 Hi, Nice job ! i'm trying to compile on arduino ide 1.6.5 and have the following result Arduino: 1.6.5 (Windows 8.1), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200" C:\Users\pascal\Documents\Arduino\libraries\WiFiManager-master\WiFiManager.cpp: In member function 'boolean WiFiManager::captivePortal()': C:\Users\pascal\Documents\Arduino\libraries\WiFiManager-master\WiFiManager.cpp:405:20: error: 'class ESP8266WebServer' has no member named 'hostHeader' if (!isIp(server.hostHeader()) ) { ^ C:\Users\pascal\Documents\Arduino\libraries\WiFiManager-master\WiFiManager.cpp:407:82: error: 'class WiFiClient' has no member named 'localIP' server.sendHeader("Location", String("http://") + toStringIp(server.client().localIP()), true); ^ Error compiling. Have you an idea of the real source of hostheader / localip compilation problem ? THX on advance for any help ! Cheers .
kerem closed this issue 2026-02-28 01:22:52 +03:00
Author
Owner

@tzapu commented on GitHub (Nov 17, 2015):

hi, you need to install the staging version of the esp8266 for arduino ide package
https://github.com/esp8266/Arduino#staging-version-
let me know if it worked
cheers

<!-- gh-comment-id:157303313 --> @tzapu commented on GitHub (Nov 17, 2015): hi, you need to install the staging version of the esp8266 for arduino ide package https://github.com/esp8266/Arduino#staging-version- let me know if it worked cheers
Author
Owner

@velectris commented on GitHub (Nov 17, 2015):

Hi,

THX for this prompt answer !

Anyway, i have set-up the staging release in my ide, but i have exactly the
same compilation error...

I'm still interested in testing any other way to solve this issue, of
course.

Have a nice day !

Pascal Nuti
www.quantia.fr
www.solable.fr
https://www.linkedin.com/pub/pascal-nuti/17/82a/504

2015-11-17 9:00 GMT+01:00 tzapu notifications@github.com:

hi, you need to install the staging version of the esp8266 for arduino ide
package
https://github.com/esp8266/Arduino#staging-version-
let me know if it worked
cheers


Reply to this email directly or view it on GitHub
https://github.com/tzapu/WiFiManager/issues/12#issuecomment-157303313.

<!-- gh-comment-id:157316943 --> @velectris commented on GitHub (Nov 17, 2015): Hi, THX for this prompt answer ! Anyway, i have set-up the staging release in my ide, but i have exactly the same compilation error... I'm still interested in testing any other way to solve this issue, of course. Have a nice day ! Pascal Nuti www.quantia.fr www.solable.fr https://www.linkedin.com/pub/pascal-nuti/17/82a/504 2015-11-17 9:00 GMT+01:00 tzapu notifications@github.com: > hi, you need to install the staging version of the esp8266 for arduino ide > package > https://github.com/esp8266/Arduino#staging-version- > let me know if it worked > cheers > > — > Reply to this email directly or view it on GitHub > https://github.com/tzapu/WiFiManager/issues/12#issuecomment-157303313.
Author
Owner

@tzapu commented on GitHub (Nov 17, 2015):

hello,
could it be that you have multiple versions of the package or it s libraries from past installs? (hardware folder in arduino documents folder? past install of arduino package that included arduino ide as well?)
using staging fixed that error for everyone so far

cheers
alex

<!-- gh-comment-id:157325776 --> @tzapu commented on GitHub (Nov 17, 2015): hello, could it be that you have multiple versions of the package or it s libraries from past installs? (hardware folder in arduino documents folder? past install of arduino package that included arduino ide as well?) using staging fixed that error for everyone so far cheers alex
Author
Owner

@velectris commented on GitHub (Nov 17, 2015):

Hi, Alex,

Thanks again for your support, you're the king !

In fact, when you told me to change my ide link to staging release, the
arduino ide changed the board manager ( with no prompt at all...) to
arduino Yun !!!
i then re-enabled the esp8266, selected the nodemcu 1.0, and re-compiled,
after rebooting the ide, and all is now perfect !!!

Cheers ! 😁

Pascal Nuti
www.quantia.fr
www.solable.fr
https://www.linkedin.com/pub/pascal-nuti/17/82a/504

2015-11-17 11:05 GMT+01:00 tzapu notifications@github.com:

hello,
could it be that you have multiple versions of the package or it s
libraries from past installs? (hardware folder in arduino documents folder?
past install of arduino package that included arduino ide as well?)
using staging fixed that error for everyone so far

cheers
alex


Reply to this email directly or view it on GitHub
https://github.com/tzapu/WiFiManager/issues/12#issuecomment-157325776.

<!-- gh-comment-id:157537170 --> @velectris commented on GitHub (Nov 17, 2015): Hi, Alex, Thanks again for your support, you're the king ! In fact, when you told me to change my ide link to staging release, the arduino ide changed the board manager ( with no prompt at all...) to arduino Yun !!! i then re-enabled the esp8266, selected the nodemcu 1.0, and re-compiled, after rebooting the ide, and all is now perfect !!! Cheers ! 😁 Pascal Nuti www.quantia.fr www.solable.fr https://www.linkedin.com/pub/pascal-nuti/17/82a/504 2015-11-17 11:05 GMT+01:00 tzapu notifications@github.com: > hello, > could it be that you have multiple versions of the package or it s > libraries from past installs? (hardware folder in arduino documents folder? > past install of arduino package that included arduino ide as well?) > using staging fixed that error for everyone so far > > cheers > alex > > — > Reply to this email directly or view it on GitHub > https://github.com/tzapu/WiFiManager/issues/12#issuecomment-157325776.
Author
Owner

@tzapu commented on GitHub (Nov 18, 2015):

glad it helped
good luck

<!-- gh-comment-id:157614153 --> @tzapu commented on GitHub (Nov 18, 2015): glad it helped good luck
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#11
No description provided.