[GH-ISSUE #1520] Error when compiling my project with WifiManager #1298

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

Originally created by @anhellillo on GitHub (Nov 15, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1520

Basic Infos

Hardware

WiFimanager Branch/Release: Master/2.0.14-beta

Esp8266/Esp32: ESP32

Hardware: ESP32-2432S028R / ILI9341

Core Version: 2.4.0, staging

Description

Hello, I have entered the instructions to use WifiManager in my project and when compiling only it gives me this error.
You can help me. Thanks.

Settings in IDE

Module: ESP32 dev module

Additional libraries:
#include <WiFi.h>
#include <WebServer.h>
#include <HTTPClient.h>
#include <ArduinoJson.hpp>
#include <ArduinoJson.h>
#include <NTPClient.h>

#include "time.h"

#include <lvgl.h>
#include <TFT_eSPI.h>
#include <TFT_Touch.h>

#include <WiFiManager.h>
#include <DNSServer.h>
#include <FS.h>
#include <SD.h>
#include <SPIFFS.h>

Sketch

#BEGIN
#include <Arduino.h>

void setup() {

}

void loop() {

}
#END

Debug Messages

c:\Users\Documents\Arduino\libraries\WiFiManager\WiFiManager.cpp: In member function 'void WiFiManager::handleRequest()':
c:\Users\Documents\Arduino\libraries\WiFiManager\WiFiManager.cpp:1318:35: error: 'HTTPAuthMethod' has not been declared
     server->requestAuthentication(HTTPAuthMethod::BASIC_AUTH); // DIGEST_AUTH
Originally created by @anhellillo on GitHub (Nov 15, 2022). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1520 ### Basic Infos #### Hardware WiFimanager Branch/Release: Master/2.0.14-beta Esp8266/Esp32: ESP32 Hardware: ESP32-2432S028R / ILI9341 Core Version: 2.4.0, staging ### Description Hello, I have entered the instructions to use WifiManager in my project and when compiling only it gives me this error. You can help me. Thanks. ### Settings in IDE Module: ESP32 dev module Additional libraries: #include <WiFi.h> #include <WebServer.h> #include <HTTPClient.h> #include <ArduinoJson.hpp> #include <ArduinoJson.h> #include <NTPClient.h> #include "time.h" #include <lvgl.h> #include <TFT_eSPI.h> #include <TFT_Touch.h> #include <WiFiManager.h> #include <DNSServer.h> #include <FS.h> #include <SD.h> #include <SPIFFS.h> ### Sketch ```cpp #BEGIN #include <Arduino.h> void setup() { } void loop() { } #END ``` ### Debug Messages ``` c:\Users\Documents\Arduino\libraries\WiFiManager\WiFiManager.cpp: In member function 'void WiFiManager::handleRequest()': c:\Users\Documents\Arduino\libraries\WiFiManager\WiFiManager.cpp:1318:35: error: 'HTTPAuthMethod' has not been declared server->requestAuthentication(HTTPAuthMethod::BASIC_AUTH); // DIGEST_AUTH ```
kerem closed this issue 2026-02-28 01:29:28 +03:00
Author
Owner

@tablatronix commented on GitHub (Nov 15, 2022):

hmm can you give anymore info about your environment? what version of esp are you using?
Sounds like the wrong webserver lib is being used

<!-- gh-comment-id:1315880836 --> @tablatronix commented on GitHub (Nov 15, 2022): hmm can you give anymore info about your environment? what version of esp are you using? Sounds like the wrong webserver lib is being used
Author
Owner

@anhellillo commented on GitHub (Nov 15, 2022):

When you ask me the version of ESP. What are you talking about?

To this:? https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

<!-- gh-comment-id:1315887613 --> @anhellillo commented on GitHub (Nov 15, 2022): When you ask me the version of ESP. What are you talking about? To this:? https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Author
Owner

@tablatronix commented on GitHub (Nov 15, 2022):

Yes is this in arduino? It should be in compile log. check that you do not have a third parry webserver library installed

<!-- gh-comment-id:1315890669 --> @tablatronix commented on GitHub (Nov 15, 2022): Yes is this in arduino? It should be in compile log. check that you do not have a third parry webserver library installed
Author
Owner

@anhellillo commented on GitHub (Nov 15, 2022):

ok, you were right. I had changed my original Webserver library and now it compiles without problems, but when starting it gives this error:
E (21) SPIFFS: mount failed, -10025
E (22) SPIFFS: mount failed, -10025
Do you know what can happen now?

<!-- gh-comment-id:1315941638 --> @anhellillo commented on GitHub (Nov 15, 2022): ok, you were right. I had changed my original Webserver library and now it compiles without problems, but when starting it gives this error: E (21) SPIFFS: mount failed, -10025 E (22) SPIFFS: mount failed, -10025 Do you know what can happen now?
Author
Owner

@tablatronix commented on GitHub (Nov 16, 2022):

Might have the flash size or partitions set wrong

<!-- gh-comment-id:1316122995 --> @tablatronix commented on GitHub (Nov 16, 2022): Might have the flash size or partitions set wrong
Author
Owner

@anhellillo commented on GitHub (Dec 27, 2022):

Hello,
I am writing to you because I have problems with the Wifimanager library,
since I upgraded it to my application, the space occupied by my Sketch goes
from 71% to 104% and it does not compile.
I've tried going back to the previous version and the same thing still
happens.
Can you help me and give me some clue what can happen.
PDT: The only other thing I've done is update the firmware on my Arduino
AVR Boards from version 1.8.5 to 1.8.6.
Thank you.
Greetings.

El mar, 15 nov 2022 a las 22:23, Shawn A @.***>)
escribió:

hmm can you give anymore info about your environment? what version of esp
are you using?


Reply to this email directly, view it on GitHub
https://github.com/tzapu/WiFiManager/issues/1520#issuecomment-1315880836,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A4GUDCGNTF67Q5YTIFUNZ6TWIP5NRANCNFSM6AAAAAASBKPQZY
.
You are receiving this because you authored the thread.Message ID:
@.***>

<!-- gh-comment-id:1365880506 --> @anhellillo commented on GitHub (Dec 27, 2022): Hello, I am writing to you because I have problems with the Wifimanager library, since I upgraded it to my application, the space occupied by my Sketch goes from 71% to 104% and it does not compile. I've tried going back to the previous version and the same thing still happens. Can you help me and give me some clue what can happen. PDT: The only other thing I've done is update the firmware on my Arduino AVR Boards from version 1.8.5 to 1.8.6. Thank you. Greetings. El mar, 15 nov 2022 a las 22:23, Shawn A ***@***.***>) escribió: > hmm can you give anymore info about your environment? what version of esp > are you using? > > — > Reply to this email directly, view it on GitHub > <https://github.com/tzapu/WiFiManager/issues/1520#issuecomment-1315880836>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/A4GUDCGNTF67Q5YTIFUNZ6TWIP5NRANCNFSM6AAAAAASBKPQZY> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@tablatronix commented on GitHub (Dec 27, 2022):

ESP library is also signifigantly larger now

<!-- gh-comment-id:1366017494 --> @tablatronix commented on GitHub (Dec 27, 2022): ESP library is also signifigantly larger now
Author
Owner

@anhellillo commented on GitHub (Dec 27, 2022):

he probado a hacer un downgrade de esp library y me sigue ocurriendo lo mismo.
si, incluyo estas instrucciones el compilador me indica que se ha revasado el 100%. Si las comento, compila y me indica que ha utilzado el 71% del espacio util.
WiFiManager WifiM;
bool sw1 = WifiM.autoConnect( "eControl_AP", "12345678" );
if ( !sw1 ) ESP.restart();
¿Hay alguna forma de no tener que cargar toda la libreria? Gracias.

<!-- gh-comment-id:1366021287 --> @anhellillo commented on GitHub (Dec 27, 2022): he probado a hacer un downgrade de esp library y me sigue ocurriendo lo mismo. si, incluyo estas instrucciones el compilador me indica que se ha revasado el 100%. Si las comento, compila y me indica que ha utilzado el 71% del espacio util. WiFiManager WifiM; bool sw1 = WifiM.autoConnect( "eControl_AP", "12345678" ); if ( !sw1 ) ESP.restart(); ¿Hay alguna forma de no tener que cargar toda la libreria? Gracias.
Author
Owner

@anhellillo commented on GitHub (Dec 27, 2022):

I have tried to downgrade esp library and the same thing keeps happening.
If I include these instructions, the compiler tells me that 100% has been exceeded. If I comment them, it compiles and tells me that it has used 71% of the useful space.
WiFiManagerWifiM;
bool sw1 = WifiM.autoConnect( "eControl_AP", "12345678" );
if ( !sw1 ) ESP.restart();
Is there a way to avoid having to load the whole library? Thank you.

<!-- gh-comment-id:1366021601 --> @anhellillo commented on GitHub (Dec 27, 2022): I have tried to downgrade esp library and the same thing keeps happening. If I include these instructions, the compiler tells me that 100% has been exceeded. If I comment them, it compiles and tells me that it has used 71% of the useful space. WiFiManagerWifiM; bool sw1 = WifiM.autoConnect( "eControl_AP", "12345678" ); if ( !sw1 ) ESP.restart(); Is there a way to avoid having to load the whole library? Thank you.
Author
Owner

@tablatronix commented on GitHub (Dec 27, 2022):

Maybe you changed the partition size?

<!-- gh-comment-id:1366089040 --> @tablatronix commented on GitHub (Dec 27, 2022): Maybe you changed the partition size?
Author
Owner

@anhellillo commented on GitHub (Dec 27, 2022):

Thank you, for the moment I have changed the partition and I have been able to compile but, wouldn't there be a possibility if I am only going to use the instructions that I have attached to you, download the library and make it only for those instructions? I understand that we all like our tools to be as complete and diverse as possible, but having to work with these microchips, maybe a reduced version could be useful for many people. Thank you anyway for your effort and dedication.
Greetings.

<!-- gh-comment-id:1366161446 --> @anhellillo commented on GitHub (Dec 27, 2022): Thank you, for the moment I have changed the partition and I have been able to compile but, wouldn't there be a possibility if I am only going to use the instructions that I have attached to you, download the library and make it only for those instructions? I understand that we all like our tools to be as complete and diverse as possible, but having to work with these microchips, maybe a reduced version could be useful for many people. Thank you anyway for your effort and dedication. Greetings.
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#1298
No description provided.