[GH-ISSUE #985] Feature request: pls make WifiManager compatible with WiFiClientSecure #840

Closed
opened 2026-02-28 01:27:17 +03:00 by kerem · 1 comment
Owner

Originally created by @fmarzocca on GitHub (Dec 28, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/985

i have several projects in which I need to use WiFiMager together with WiFiClientSecure, but WiFiManager does not allow use of WiFiClientSecure.

This simple scketch does not compile:

#include <WiFiClientSecure.h>
#include <DNSServer.h>            //Local DNS Server used for redirecting all requests to the configuration portal
#include <ESP8266WebServer.h>     //Local WebServer used to serve the configuration portal
#include <WiFiManager.h>          //https://github.com/tzapu/WiFiManager WiFi Configuration Magic

void setup() {
  // put your setup code here, to run once:
}

void loop() {
  // put your main code here, to run repeatedly:
}

this is ther error output:

Arduino: 1.8.10 (Mac OS X), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new can abort), All SSL ciphers (most compatible), 4MB (FS:none OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

In file included from /Users/fabio/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/sdk/libc/xtensa-lx106-elf/include/sys/stdio.h:6:0,
                 from /Users/fabio/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/sdk/libc/xtensa-lx106-elf/include/stdio.h:63,
                 from /Users/fabio/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/cores/esp8266/Arduino.h:32,
                 from sketch/sketch_dec28a.ino.cpp:1:
/Users/fabio/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/sdk/libc/xtensa-lx106-elf/include/sys/pgmspace.h:25:130: error: 'const char HTTP_HEAD []' redeclared as different kind of symbol
   #define PROGMEM __attribute__((section( "\".irom.text." __FILE__ "." __STRINGIZE(__LINE__) "."  __STRINGIZE(__COUNTER__) "\"")))
                                                                                                                                  ^
/Users/fabio/Dropbox/codice/Arduino/libraries/WiFiManager-hotfixes/WiFiManager.h:25:24: note: in expansion of macro 'PROGMEM'
 const char HTTP_HEAD[] PROGMEM            = "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"UTF-8\" name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\"/><title>{v}</title>";
                        ^
In file included from /Users/fabio/Dropbox/codice/Arduino/sketch_dec28a/sketch_dec28a.ino:5:0:
/Users/fabio/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/libraries/ESP8266WebServer/src/ESP8266WebServer.h:33:39: error: previous declaration of 'HTTPMethod HTTP_HEAD'
 enum HTTPMethod { HTTP_ANY, HTTP_GET, HTTP_HEAD, HTTP_POST, HTTP_PUT, HTTP_PATCH, HTTP_DELETE, HTTP_OPTIONS };
                                       ^
Multiple libraries were found for "WiFiClientSecure.h"
 Used: /Users/fabio/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/libraries/ESP8266WiFi
Multiple libraries were found for "DNSServer.h"
 Used: /Users/fabio/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/libraries/DNSServer
Multiple libraries were found for "ESP8266WebServer.h"
 Used: /Users/fabio/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/libraries/ESP8266WebServer
Multiple libraries were found for "WiFiManager.h"
 Used: /Users/fabio/Dropbox/codice/Arduino/libraries/WiFiManager-hotfixes
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

Basic Infos

Hardware

WiFimanager Branch/Release:

  • [ X] Master
  • Development

Esp8266/Esp32:

  • ESP8266
  • [ X] ESP32

Hardware: ESP-12e, esp01, esp25

  • ESP01
  • [ X] ESP12 E/F/S (nodemcu, wemos, feather)
  • Other

ESP Core Version: 2.4.0, staging

  • 2.3.0
  • [ X] 2.6.3
  • staging (master/dev)
Originally created by @fmarzocca on GitHub (Dec 28, 2019). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/985 i have several projects in which I need to use WiFiMager together with WiFiClientSecure, but WiFiManager does not allow use of WiFiClientSecure. This simple scketch does not compile: ``` #include <WiFiClientSecure.h> #include <DNSServer.h> //Local DNS Server used for redirecting all requests to the configuration portal #include <ESP8266WebServer.h> //Local WebServer used to serve the configuration portal #include <WiFiManager.h> //https://github.com/tzapu/WiFiManager WiFi Configuration Magic void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: } ``` this is ther error output: ``` Arduino: 1.8.10 (Mac OS X), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new can abort), All SSL ciphers (most compatible), 4MB (FS:none OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200" In file included from /Users/fabio/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/sdk/libc/xtensa-lx106-elf/include/sys/stdio.h:6:0, from /Users/fabio/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/sdk/libc/xtensa-lx106-elf/include/stdio.h:63, from /Users/fabio/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/cores/esp8266/Arduino.h:32, from sketch/sketch_dec28a.ino.cpp:1: /Users/fabio/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/sdk/libc/xtensa-lx106-elf/include/sys/pgmspace.h:25:130: error: 'const char HTTP_HEAD []' redeclared as different kind of symbol #define PROGMEM __attribute__((section( "\".irom.text." __FILE__ "." __STRINGIZE(__LINE__) "." __STRINGIZE(__COUNTER__) "\""))) ^ /Users/fabio/Dropbox/codice/Arduino/libraries/WiFiManager-hotfixes/WiFiManager.h:25:24: note: in expansion of macro 'PROGMEM' const char HTTP_HEAD[] PROGMEM = "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"UTF-8\" name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\"/><title>{v}</title>"; ^ In file included from /Users/fabio/Dropbox/codice/Arduino/sketch_dec28a/sketch_dec28a.ino:5:0: /Users/fabio/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/libraries/ESP8266WebServer/src/ESP8266WebServer.h:33:39: error: previous declaration of 'HTTPMethod HTTP_HEAD' enum HTTPMethod { HTTP_ANY, HTTP_GET, HTTP_HEAD, HTTP_POST, HTTP_PUT, HTTP_PATCH, HTTP_DELETE, HTTP_OPTIONS }; ^ Multiple libraries were found for "WiFiClientSecure.h" Used: /Users/fabio/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/libraries/ESP8266WiFi Multiple libraries were found for "DNSServer.h" Used: /Users/fabio/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/libraries/DNSServer Multiple libraries were found for "ESP8266WebServer.h" Used: /Users/fabio/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/libraries/ESP8266WebServer Multiple libraries were found for "WiFiManager.h" Used: /Users/fabio/Dropbox/codice/Arduino/libraries/WiFiManager-hotfixes exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module). ``` ### Basic Infos #### Hardware **WiFimanager Branch/Release:** - [ X] Master - [ ] Development **Esp8266/Esp32:** - [ ] ESP8266 - [ X] ESP32 **Hardware: ESP-12e, esp01, esp25** - [ ] ESP01 - [ X] ESP12 E/F/S (nodemcu, wemos, feather) - [ ] Other **ESP Core Version: 2.4.0, staging** - [ ] 2.3.0 - [ X] 2.6.3 - [ ] staging (master/dev)
kerem closed this issue 2026-02-28 01:27:17 +03:00
Author
Owner

@tablatronix commented on GitHub (Dec 28, 2019):

Use the beta

<!-- gh-comment-id:569431919 --> @tablatronix commented on GitHub (Dec 28, 2019): Use the beta
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#840
No description provided.