mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 17:15:53 +03:00
[GH-ISSUE #1625] error: 'HTTPAuthMethod' has not been declared #1384
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1384
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Leonid49 on GitHub (Jun 12, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1625
PLEASE TRY Latest Master BRANCH before submitting bugs, in case they were already fixed.
Issues without basic info will be ignored or closed!
Please fill the info fields, it helps to get you faster support ;)
if you have a stack dump decode it:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/stack_dump.rst
for better debug messages:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/debugging.rst
----------------------------- Remove above -----------------------------
Basic Infos
Hardware
WiFimanager Branch/Release: Master
Esp8266/Esp32:
Hardware: ESP-8266
Core Version: 3.0.2 staging
Description
Problem description
compilation error: 'HTTPAuthMethod' has not been declared server->requestAuthentication(HTTPAuthMethod::BASIC_AUTH);
// DIGEST_AUTH
Settings in IDE
Module: ESP8266
Additional libraries:
Sketch
#include <ESP8266WiFi.h>
#include <ESP8266Ping.h>
#include <WiFiManager.h>
WiFiManager wifi;
void setup()
{
// put your setup code here, to run once:
}
void loop()
{
// put your main code here, to run repeatedly:
}
Debug Messages
@Leonid49 commented on GitHub (Jun 12, 2023):
May very simple sketch is compiled with error: WiFiManager.cpp:1319:35: error: 'HTTPAuthMethod' has not been declared
1319 | server->requestAuthentication(HTTPAuthMethod::BASIC_AUTH); // DIGEST_AUTH
There is sketch:
#include <ESP8266WiFi.h>
#include <ESP8266Ping.h>
#include <WiFiManager.h>
WiFiManager wifi;
void setup()
{
// put your setup code here, to run once:
}
void loop()
{
// put your main code here, to run repeatedly:
}
When I comment : //#include <WiFiManager.h> //WiFiManager wifi; - compilling is success
What it mey be?
@tablatronix commented on GitHub (Jun 13, 2023):
using the wrong webserver library?
@Leonid49 commented on GitHub (Jun 13, 2023):
How version of the WiFi WebServer I should using?
вт, 13 июн. 2023 г. в 04:16, Shawn A @.***>:
@kevinkessler commented on GitHub (Jul 14, 2023):
What version should we be using? If I use https://github.com/tzapu/WiFiManager#master or https://github.com/tzapu/WiFiManager#v2.0.16-rc.2 I get this HTTPAuthMethod error. If I use https://github.com/tzapu/WiFiManager#0.16.0, I get the "ESP8266Wifi.h: No such file or directory" error. This is for an ESP32 in platformio, and I put lib_ldf_mode = deep+ in my ini file.
@tablatronix commented on GitHub (Jul 15, 2023):
Not sure sounds like your environment is messed up, try in arduino IDE?