[GH-ISSUE #590] auto generated accesses point on reset #492

Closed
opened 2026-02-28 01:25:33 +03:00 by kerem · 7 comments
Owner

Originally created by @tusharpc on GitHub (Apr 12, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/590

WiFimanager Branch/Release: Development

Esp8266/Esp32: ESP8266

Hardware: ESP-12e

Core Version: 2.4.1,

Description

Problem description:
using development branch and basic auto connect example. Once the device is set to connect to an access point, everything works perfect, reset the NodeMCU and it still connects as client but it simultaneously spins an auto generated access point with default chip name + ID

Settings in IDE

Module: NodeMcu

Additional libraries:

Sketch

#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager

void setup() {
    // put your setup code here, to run once:
    Serial.begin(115200);

    //WiFiManager
    //Local intialization. Once its business is done, there is no need to keep it around
    WiFiManager wifiManager;
    //reset saved settings
    //wifiManager.resetSettings();
    
    //set custom ip for portal
    //wifiManager.setAPStaticIPConfig(IPAddress(10,0,1,1), IPAddress(10,0,1,1), IPAddress(255,255,255,0));

    //fetches ssid and pass from eeprom and tries to connect
    //if it does not connect it starts an access point with the specified name
    //here  "AutoConnectAP"
    //and goes into a blocking loop awaiting configuration
    wifiManager.autoConnect("AutoConnectAP");
    //or use this for auto generated name ESP + ChipID
    //wifiManager.autoConnect();

    
    //if you get here you have connected to the WiFi
    Serial.println("connected...yeey :)");
}

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

Debug Messages

messages here
Originally created by @tusharpc on GitHub (Apr 12, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/590 WiFimanager Branch/Release: Development Esp8266/Esp32: ESP8266 Hardware: ESP-12e Core Version: 2.4.1, ### Description Problem description: using development branch and basic auto connect example. Once the device is set to connect to an access point, everything works perfect, reset the NodeMCU and it still connects as client but it simultaneously spins an auto generated access point with default chip name + ID ### Settings in IDE Module: NodeMcu Additional libraries: ### Sketch ``` #include <WiFiManager.h> // https://github.com/tzapu/WiFiManager void setup() { // put your setup code here, to run once: Serial.begin(115200); //WiFiManager //Local intialization. Once its business is done, there is no need to keep it around WiFiManager wifiManager; //reset saved settings //wifiManager.resetSettings(); //set custom ip for portal //wifiManager.setAPStaticIPConfig(IPAddress(10,0,1,1), IPAddress(10,0,1,1), IPAddress(255,255,255,0)); //fetches ssid and pass from eeprom and tries to connect //if it does not connect it starts an access point with the specified name //here "AutoConnectAP" //and goes into a blocking loop awaiting configuration wifiManager.autoConnect("AutoConnectAP"); //or use this for auto generated name ESP + ChipID //wifiManager.autoConnect(); //if you get here you have connected to the WiFi Serial.println("connected...yeey :)"); } void loop() { // put your main code here, to run repeatedly: } ``` ### Debug Messages ``` messages here ```
kerem closed this issue 2026-02-28 01:25:33 +03:00
Author
Owner

@tusharpc commented on GitHub (Apr 14, 2018):

screenshot_20180414-014942__01

<!-- gh-comment-id:381306195 --> @tusharpc commented on GitHub (Apr 14, 2018): ![screenshot_20180414-014942__01](https://user-images.githubusercontent.com/25872514/38764971-45017df4-3f87-11e8-9173-5bcdcc088bd9.jpg)
Author
Owner

@tablatronix commented on GitHub (Apr 14, 2018):

are you setting mode sta in your code? Not sure what esp defaults to after you erase flash

<!-- gh-comment-id:381330551 --> @tablatronix commented on GitHub (Apr 14, 2018): are you setting mode sta in your code? Not sure what esp defaults to after you erase flash
Author
Owner

@tablatronix commented on GitHub (Apr 14, 2018):

ill look into any bugs , i had a way to fix this but it is disabled because it was causing issues, so it might be wm.

<!-- gh-comment-id:381331365 --> @tablatronix commented on GitHub (Apr 14, 2018): ill look into any bugs , i had a way to fix this but it is disabled because it was causing issues, so it might be wm.
Author
Owner

@tusharpc commented on GitHub (Apr 14, 2018):

@tablatronix , not sure what you mean "setting mode sta in your code?", pretty much using the standard example, can you point me to some examples? (I'm a bit slow on the coding side ) .
btw this issue is not happening on the master version, but it has the issue of not being able to reach the config portal if the original AP is unavailable, you described a solution here : #525

also, just unbelievably awesome work you (and Tzapu ) doing here Shawn. I think it has truly opened up the esps to be IOT's for the masses.

<!-- gh-comment-id:381338869 --> @tusharpc commented on GitHub (Apr 14, 2018): @tablatronix , not sure what you mean "setting mode sta in your code?", pretty much using the standard example, can you point me to some examples? (I'm a bit slow on the coding side ) . btw this issue is not happening on the master version, but it has the issue of not being able to reach the config portal if the original AP is unavailable, you described a solution here : #525 also, just unbelievably awesome work you (and Tzapu ) doing here Shawn. I think it has truly opened up the esps to be IOT's for the masses.
Author
Owner

@tablatronix commented on GitHub (Apr 14, 2018):

The master version changes your modes , the development version should not, so you are probably seeing the correct behavior now.

In your code call WiFi.mode(WIFI_STA) and it will remember it even if you remove it after running it.

I will try to fix the feature that lets you set the preffered mode after wm exits. Its disabled it crashes stuff. Also will check for any bugs that might be changing modes

<!-- gh-comment-id:381341117 --> @tablatronix commented on GitHub (Apr 14, 2018): The master version changes your modes , the development version should not, so you are probably seeing the correct behavior now. In your code call WiFi.mode(WIFI_STA) and it will remember it even if you remove it after running it. I will try to fix the feature that lets you set the preffered mode after wm exits. Its disabled it crashes stuff. Also will check for any bugs that might be changing modes
Author
Owner

@tusharpc commented on GitHub (Apr 14, 2018):

@tablatronix thanks this seems to have done the trick. no more mysterious Chip ID access points!
thanks much!

<!-- gh-comment-id:381343519 --> @tusharpc commented on GitHub (Apr 14, 2018): @tablatronix thanks this seems to have done the trick. no more mysterious Chip ID access points! thanks much!
Author
Owner

@iamjameshannam commented on GitHub (May 28, 2018):

Is there a way to grab the device ID and create a unique device name on the splash screen? For example, MyDevice_1234?

<!-- gh-comment-id:392618179 --> @iamjameshannam commented on GitHub (May 28, 2018): Is there a way to grab the device ID and create a unique device name on the splash screen? For example, MyDevice_1234?
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#492
No description provided.