mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 17:15:53 +03:00
[GH-ISSUE #867] No way to remove existing AP's #731
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#731
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 @adamsstephen on GitHub (Apr 17, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/867
----------------------------- Remove above -----------------------------
Basic Infos
Hardware
WiFimanager Branch/Release:
Esp8266/Esp32:
Hardware: ESP-12e, esp01, esp25
ESP Core Version: 2.5.0, staging
Description
Problem description
There is no way to delete existing connected AP's, such as Home AP's used for testing on ESP-01, so autoconnect sees this and does not look for the AP I want to logon to as it is already connected.
How can you delete existing AP's or delete ALL AP's as part of the sketch, so only the required AP is searched for?.
This is also a security issue on commercial products as it leaves a test ssid and password available in the device.
Settings in IDE
Module: Generic ESP8266 module
Additional libraries:
#include <ESP8266WiFi.h>
//autoconnect needed for library
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include "WiFiManager.h"
Sketch
// Not relevent
void setup() {
}
void loop() {
}
@agrath commented on GitHub (Apr 17, 2019):
@adamsstephen you can call
resetSettingson theWiFiManager wifiManagerto clear saved credentials and access points.or, if the device is booted and the existing access points are not available, you'll get a captive portal requesting the credentials for available to join.
@adamsstephen commented on GitHub (Apr 17, 2019):
Thanks, that works brilliantly.
Please can you add it to the documentation or How t?, I can only find it in the examples.
@tablatronix commented on GitHub (Apr 17, 2019):
The esp only stores 1 credential at a time.. you can either erase flash from arduino IDE or esptool.