[GH-ISSUE #1241] WiFiManager.cpp:1182:35: error: 'HTTPAuthMethod' has not been declared #1061

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

Originally created by @f4ni on GitHub (Apr 13, 2021).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1241

Hello everyone,

I tried an example of WiFiManager Library on my NodeMCU, but i got following errors:

In file included from C:\USER\arduino-1.8.13\libraries\WiFiManager-master\WiFiManager.cpp:13:0:
C:\USER\arduino-1.8.13\libraries\WiFiManager-master\WiFiManager.h:34:2: warning: #warning "ARDUINO_ESP8266_RELEASE_2_3_0, some WM features disabled" [-Wcpp]
#warning "ARDUINO_ESP8266_RELEASE_2_3_0, some WM features disabled"
^
C:\USER\arduino-1.8.13\libraries\WiFiManager-master\WiFiManager.cpp: In member function 'void WiFiManager::handleRequest()':

C:\USER\arduino-1.8.13\libraries\WiFiManager-master\WiFiManager.cpp:1182:35: error: 'HTTPAuthMethod' has not been declared
server->requestAuthentication(HTTPAuthMethod::BASIC_AUTH); // DIGEST_AUTH
^
C:\USER\arduino-1.8.13\libraries\WiFiManager-master\WiFiManager.cpp: In member function 'String WiFiManager::getInfoData(String)':

C:\USER\arduino-1.8.13\libraries\WiFiManager-master\WiFiManager.cpp:2028:44: error: 'class ESP8266WiFiClass' has no member named 'softAPSSID'
p.replace(FPSTR(T_1),htmlEntities(WiFi.softAPSSID()));

Kindly help me solving this problem.

Thanks.

Originally created by @f4ni on GitHub (Apr 13, 2021). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1241 Hello everyone, I tried an example of WiFiManager Library on my NodeMCU, but i got following errors: In file included from C:\USER\arduino-1.8.13\libraries\WiFiManager-master\WiFiManager.cpp:13:0: C:\USER\arduino-1.8.13\libraries\WiFiManager-master\WiFiManager.h:34:2: warning: #warning "ARDUINO_ESP8266_RELEASE_2_3_0, some WM features disabled" [-Wcpp] #warning "ARDUINO_ESP8266_RELEASE_2_3_0, some WM features disabled" ^ C:\USER\arduino-1.8.13\libraries\WiFiManager-master\WiFiManager.cpp: In member function 'void WiFiManager::handleRequest()': C:\USER\arduino-1.8.13\libraries\WiFiManager-master\WiFiManager.cpp:1182:35: error: 'HTTPAuthMethod' has not been declared server->requestAuthentication(HTTPAuthMethod::BASIC_AUTH); // DIGEST_AUTH ^ C:\USER\arduino-1.8.13\libraries\WiFiManager-master\WiFiManager.cpp: In member function 'String WiFiManager::getInfoData(String)': C:\USER\arduino-1.8.13\libraries\WiFiManager-master\WiFiManager.cpp:2028:44: error: 'class ESP8266WiFiClass' has no member named 'softAPSSID' p.replace(FPSTR(T_1),htmlEntities(WiFi.softAPSSID())); Kindly help me solving this problem. Thanks.
kerem closed this issue 2026-02-28 01:28:21 +03:00
Author
Owner

@tablatronix commented on GitHub (Apr 13, 2021):

ok let me look, you are clearly using a very old version of the esp lib, are you stuck on that?

<!-- gh-comment-id:818965501 --> @tablatronix commented on GitHub (Apr 13, 2021): ok let me look, you are clearly using a very old version of the esp lib, are you stuck on that?
Author
Owner

@f4ni commented on GitHub (Apr 13, 2021):

Yeah, i updated and everything works fine now.
Thanks for your reply.

<!-- gh-comment-id:818973306 --> @f4ni commented on GitHub (Apr 13, 2021): Yeah, i updated and everything works fine now. Thanks for your reply.
Author
Owner

@tablatronix commented on GitHub (Apr 13, 2021):

I added a fix that might prevent this

<!-- gh-comment-id:819003645 --> @tablatronix commented on GitHub (Apr 13, 2021): I added a fix that might prevent this
Author
Owner

@eyyit commented on GitHub (Aug 9, 2024):

It looks like code was added to enable authentication then was bypassed. What is the status with authentication? I'd like to protect the /params and /update pages.

<!-- gh-comment-id:2278193250 --> @eyyit commented on GitHub (Aug 9, 2024): It looks like code was added to enable authentication then was bypassed. What is the status with authentication? I'd like to protect the `/params` and `/update` pages.
Author
Owner

@tablatronix commented on GitHub (Aug 10, 2024):

I think the only issue was that it doesnt work in captive portal browsers, So instead of trying to restrict this, we would benefit more from html auth instead of messing with this anymore

#1669

<!-- gh-comment-id:2278930672 --> @tablatronix commented on GitHub (Aug 10, 2024): I think the only issue was that it doesnt work in captive portal browsers, So instead of trying to restrict this, we would benefit more from html auth instead of messing with this anymore #1669
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#1061
No description provided.