[GH-ISSUE #1350] Can't get the ESP32 working with WifiManager #1157

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

Originally created by @Sulomus on GitHub (Jan 28, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1350

Basic Infos

Hello everyone,
I am trying to get WifiManager working on ESP-WROOM-32 board with PlatformIO
I have looked into several discussions on the internet:

  1. https://github.com/tzapu/WiFiManager/issues/1313
  2. https://community.platformio.org/t/esp8266wifi-library-not-found-fatal-error/9897
  3. https://github.com/tzapu/WiFiManager/issues/1231

I have tried pulling the lib via github and adding lib_ldf_mode = deep+ but with no results.

I have been stuck on this for days now and deadline is coming up ... Any help would be really appreciated! ❤️

Settings in IDE

  • Using PlatformIO
  • This is my platformio.ini file:
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
build_flags = -D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48_SECHEAP_SHARED

lib_ldf_mode = deep+
lib_deps = 
	bblanchon/ArduinoJson@^6.19.1
	mobizt/Firebase Arduino Client Library for ESP8266 and ESP32@^2.8.3
	me-no-dev/AsyncTCP@^1.1.1
	me-no-dev/ESP Async WebServer@^1.2.3
	tzapu/WiFiManager@^0.16.0
        //I have tried importing using just this line also:
        https://github.com/tzapu/WiFiManager

Sketch

#include <WiFi.h>
#include <WebServer.h>
#include <WiFiManager.h>

void setup() {
 
    Serial.begin(115200);
     
    WiFiManager manager;    
     
    bool success = manager.autoConnect("ESP32_AP","password");
 
    if(!success) {
        Serial.println("Failed to connect");
    } 
    else {
        Serial.println("Connected");
    }
}
 
void loop(){}

Debug Messages

In file included from src/main.cpp:621:0:
.pio/libdeps/esp32dev/WiFiManager/WiFiManager.h:16:25: fatal error: ESP8266WiFi.h: No such file or directory

*********************************************************************
* Looking for ESP8266WiFi.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:ESP8266WiFi.h"
* Web  > https://platformio.org/lib/search?query=header:ESP8266WiFi.h
*
*********************************************************************
Originally created by @Sulomus on GitHub (Jan 28, 2022). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1350 ### Basic Infos Hello everyone, I am trying to get `WifiManager `working on ESP-WROOM-32 board with `PlatformIO` I have looked into several discussions on the internet: 1) https://github.com/tzapu/WiFiManager/issues/1313 2) https://community.platformio.org/t/esp8266wifi-library-not-found-fatal-error/9897 3) https://github.com/tzapu/WiFiManager/issues/1231 I have tried pulling the lib via `github `and adding `lib_ldf_mode = deep+` but with no results. I have been stuck on this for days now and deadline is coming up ... Any help would be really appreciated! ❤️ ### Settings in IDE - Using PlatformIO - This is my platformio.ini file: ``` [env:esp32dev] platform = espressif32 board = esp32dev framework = arduino monitor_speed = 115200 build_flags = -D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48_SECHEAP_SHARED lib_ldf_mode = deep+ lib_deps = bblanchon/ArduinoJson@^6.19.1 mobizt/Firebase Arduino Client Library for ESP8266 and ESP32@^2.8.3 me-no-dev/AsyncTCP@^1.1.1 me-no-dev/ESP Async WebServer@^1.2.3 tzapu/WiFiManager@^0.16.0 //I have tried importing using just this line also: https://github.com/tzapu/WiFiManager ``` ### Sketch ``` #include <WiFi.h> #include <WebServer.h> #include <WiFiManager.h> void setup() { Serial.begin(115200); WiFiManager manager; bool success = manager.autoConnect("ESP32_AP","password"); if(!success) { Serial.println("Failed to connect"); } else { Serial.println("Connected"); } } void loop(){} ``` ### Debug Messages ``` In file included from src/main.cpp:621:0: .pio/libdeps/esp32dev/WiFiManager/WiFiManager.h:16:25: fatal error: ESP8266WiFi.h: No such file or directory ********************************************************************* * Looking for ESP8266WiFi.h dependency? Check our library registry! * * CLI > platformio lib search "header:ESP8266WiFi.h" * Web > https://platformio.org/lib/search?query=header:ESP8266WiFi.h * ********************************************************************* ```
kerem 2026-02-28 01:28:46 +03:00
  • closed this issue
  • added the
    Question
    label
Author
Owner

@MythicalForce commented on GitHub (Mar 26, 2022):

i have the same problem :S

<!-- gh-comment-id:1079667885 --> @MythicalForce commented on GitHub (Mar 26, 2022): i have the same problem :S
Author
Owner

@tablatronix commented on GitHub (Mar 26, 2022):

you have to use the beta versions for esp32, or git master

<!-- gh-comment-id:1079716775 --> @tablatronix commented on GitHub (Mar 26, 2022): you have to use the beta versions for esp32, or git master
Author
Owner

@MoJo2600 commented on GitHub (Mar 28, 2022):

I got the same error and reduced the imports to only one import and the sample worked for me:

#include <WiFiManager.h>

But as soon I added the lib_ldf_mode = deep+ setting to my project, it would not compile anymore. But this time with an error unrelated to WifiManager (.pio\libdeps\lolin_d32_pro\ezTime\src\ezTime.cpp:10:22: fatal error: EEPROM.h: No such file or directory).

<!-- gh-comment-id:1081123415 --> @MoJo2600 commented on GitHub (Mar 28, 2022): I got the same error and reduced the imports to only one import and the sample worked for me: ``` #include <WiFiManager.h> ``` But as soon I added the `lib_ldf_mode = deep+` setting to my project, it would not compile anymore. But this time with an error unrelated to WifiManager (`.pio\libdeps\lolin_d32_pro\ezTime\src\ezTime.cpp:10:22: fatal error: EEPROM.h: No such file or directory`).
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#1157
No description provided.