[GH-ISSUE #2] You have an error in WifiManager.cpp #2

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

Originally created by @myk3y on GitHub (Jun 18, 2015).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/2

Your library is called WiFiManager, your files are called WifiManager.h and WifiManager.cpp and the references in WifiManager.cpp - L12 - are for #include "WiFiManager.cpp"

I can't understand how this tested correctly?

Originally created by @myk3y on GitHub (Jun 18, 2015). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/2 Your library is called WiFiManager, your files are called WifiManager.h and WifiManager.cpp and the references in WifiManager.cpp - L12 - are for #include "WiFiManager.cpp" I can't understand how this tested correctly?
kerem closed this issue 2026-02-28 01:22:48 +03:00
Author
Owner

@myk3y commented on GitHub (Jun 18, 2015):

I corrected the error and ran the code as per your instructions - and it doesn't work at all.

Instead of an AP called 'ESP-AP', you end up with one called NoNetESP and nothing sensible on serial.

<!-- gh-comment-id:113040795 --> @myk3y commented on GitHub (Jun 18, 2015): I corrected the error and ran the code as per your instructions - and it doesn't work at all. Instead of an AP called 'ESP-AP', you end up with one called NoNetESP and nothing sensible on serial.
Author
Owner

@tzapu commented on GitHub (Jun 18, 2015):

hello, my bad, updated the lib but not the readme.
the file names weren't a problem, but i've updated those as well in the latest commit for consistency. thanks.

if you can, fetch the latest one and do the following
include
#include <WiFiManager.h>
init
WiFiManager wifi(0);
setup function
wifi.autoConnect("ESP-AP");

that should start the access point mode if it doesn t connect to wifi. you can then connect to it and open 192.168.4.1 in a browser

<!-- gh-comment-id:113043610 --> @tzapu commented on GitHub (Jun 18, 2015): hello, my bad, updated the lib but not the readme. the file names weren't a problem, but i've updated those as well in the latest commit for consistency. thanks. if you can, fetch the latest one and do the following include `#include <WiFiManager.h>` init `WiFiManager wifi(0);` setup function `wifi.autoConnect("ESP-AP");` that should start the access point mode if it doesn t connect to wifi. you can then connect to it and open 192.168.4.1 in a browser
Author
Owner

@myk3y commented on GitHub (Jun 18, 2015):

Cool, thanks.

<!-- gh-comment-id:113044186 --> @myk3y commented on GitHub (Jun 18, 2015): Cool, thanks.
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#2
No description provided.