mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #859] AP connection not saved up on power failures #725
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#725
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 @ghost on GitHub (Mar 27, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/859
Basic Infos
Hardware
WiFimanager Branch/Release:
Esp8266/Esp32:
Hardware: ESP-12e, esp01, esp25
ESP Core Version: 2.4.0, staging
Description
hi guys, i have 2 problems that i looking for solutions.
1, how can i make sure the AP credentials got saved, lets say if power failures happens ?
but got deleted up on pressing the reset button on the side of the module ?
right now either way just clear the credentials.
Also if i just disconnect power im not able to login back (only if i use ESP.eraseConfig(); once than comment out that line)
please see debug info:
*WM: Sent config page
*WM: Request redirected to captive portal
*WM: Handle root
*WM: WiFi save
*WM: Sent wifi save page
*WM: Connecting to new AP
*WM: Connecting as wifi client...
*WM: Waiting for connection result with time out
*WM: Connection timed out
*WM: Connection result:
*WM: 0
*WM: Failed to connect.
2, if the password didn't entered correctly the screen stays at (Please connect to 123's WIFI)
what i have to add to show a massage that "wifi password failed plz restart"
please see debug info
*WM: Request redirected to captive portal
*WM: Handle root
*WM: WiFi save
*WM: Sent wifi save page
*WM: Connecting to new AP
*WM: Connecting as wifi client...
*WM: Connection result:
*WM: 4
*WM: Failed to connect.
*WM: Request redirected to captive portal
*WM: Handle root
Settings in IDE
Module: LOLIN D1 mini V3.1.0
Additional libraries:
#include "SPI.h"
#include "TFT_22_ILI9225.h"
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <ESP8266WebServer.h>
#include <DNSServer.h>
#include <WiFiManager.h>
Sketch
Debug Messages
@tablatronix commented on GitHub (Mar 27, 2019):
Simple dont clear the settings and start configportal
@ghost commented on GitHub (Mar 28, 2019):
i didn't clear settings thats the thing.
also i still have the issue that fail to reconnect when turned off for some reason.
once i use ESP.eraseConfig(); it works again
@tablatronix commented on GitHub (Mar 28, 2019):
You said clear credentials by pressing reset on side of device?
If your credentials are not working everytime, then your flash might be corrupt, do a full erase from esptool or arduino
@ghost commented on GitHub (Mar 28, 2019):
it turns out i had issue with the latest release of esp8266 v2.5.0
when i downgraded back to v2.4.0 works fine everything.
is there any way to configure the wifimanager without a 3rd device?
i have touchscreen lolin tft 2.4 , was wondering if possible to bring up a keyboard on a screen and enter the credentials that get saved later.
@tablatronix commented on GitHub (Mar 28, 2019):
Yeah but then why would you need wm
@ghost commented on GitHub (Mar 28, 2019):
i guess if there is a way for it, i might dont need wm, can you share witch one you think of ?
thanks
@tablatronix commented on GitHub (Mar 28, 2019):
Wm is a webportal for entering settings if younare going to ise a touchscreen the what is the point of using wm?
Not sure what you mean by a third device?
@ghost commented on GitHub (Mar 28, 2019):
if you use wm you need a 3rd party device.
i already told you, im not necessarily want to use wm if i can make it with touchscreen. my question is still up.
@tablatronix commented on GitHub (Mar 29, 2019):
You mean a second device to connect to the websserver.
No idea you would need a popup keyboard generator and save the inouts and call begin(ssid,password) this is all normal esp stuff not wm