[GH-ISSUE #1118] Problem with Autoconnect Method #957

Closed
opened 2026-02-28 01:27:50 +03:00 by kerem · 2 comments
Owner

Originally created by @raubuchs on GitHub (Sep 1, 2020).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1118

PLEASE TRY DEVELOPMENT BRANCH before submitting bugs on release or master, in case they were already fixed.

POST SERIAL OUTPUT !

Issues without basic info will be ignored or closed!

Please fill the info fields, it helps to get you faster support ;)

if you have a stack dump decode it:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/stack_dump.rst

for better debug messages:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/debugging.rst

----------------------------- Remove above -----------------------------

Basic Infos

Hardware

WiFimanager Branch/Release:

  • Master
  • [x ] Development

Esp8266/Esp32:

  • [x ] ESP8266
  • ESP32

Hardware: ESP-12e, esp01, esp25

  • ESP01
  • [x ] ESP12 E/F/S (nodemcu, wemos, feather)
  • Other

ESP Core Version: 2.4.0, staging

  • 2.3.0
  • [x ] 2.4.0
  • staging (master/dev)

Description

Hello

The autoconnect method didn't work with a Wemos D1 Mini
It didn't start

Settings in IDE

Module: Wemos D1

Additional libraries:

Sketch


#include <ESP8266WiFi.h>

#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h>

#include <string>

void setup() {
  Serial.begin(115200);
  Serial.println("start...");
  pinMode(LED_BUILTIN, OUTPUT);
  WiFiManager wifiManager;
  /*char string[] = "Smart_Device_";
  String mac = WiFi.macAddress();
  mac = mac.substring(9);
  mac.replace(":","");
  String temp = strcat(string, mac.c_str());*/
  digitalWrite(LED_BUILTIN, HIGH);
  wifiManager.autoConnect();
  //if you get here you have connected to the WiFi
  Serial.println("connected...");
}

void loop() {
  if ((WiFi.status() == WL_CONNECTED))
  {

    // TODO Build Webpage for ACB in here
    for (int i = 0; i < 10; i++)
    {
      digitalWrite(LED_BUILTIN, HIGH);
      delay(1000);
      digitalWrite(LED_BUILTIN, LOW);
      delay(1000);
    }
    
  }
  else
  {
  }
}

Debug Messages

-

Serial Output

;l␀d��|␀�d�|␃␌␄␄�␄$�␄c<��␃�␓�r�c�␄c��og�lgn���␄cp8��l;l{$
Originally created by @raubuchs on GitHub (Sep 1, 2020). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1118 ## PLEASE TRY DEVELOPMENT BRANCH before submitting bugs on release or master, in case they were already fixed. ## ## POST SERIAL OUTPUT ! Issues without basic info will be ignored or closed! Please fill the info fields, it helps to get you faster support ;) if you have a stack dump decode it: https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/stack_dump.rst for better debug messages: https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/debugging.rst ----------------------------- Remove above ----------------------------- ### Basic Infos #### Hardware **WiFimanager Branch/Release:** - [ ] Master - [x ] Development **Esp8266/Esp32:** - [x ] ESP8266 - [ ] ESP32 **Hardware: ESP-12e, esp01, esp25** - [ ] ESP01 - [x ] ESP12 E/F/S (nodemcu, wemos, feather) - [ ] Other **ESP Core Version: 2.4.0, staging** - [ ] 2.3.0 - [x ] 2.4.0 - [ ] staging (master/dev) ### Description Hello The autoconnect method didn't work with a Wemos D1 Mini It didn't start ### Settings in IDE Module: Wemos D1 Additional libraries: ### Sketch ```cpp #include <ESP8266WiFi.h> #include <DNSServer.h> #include <ESP8266WebServer.h> #include <WiFiManager.h> #include <string> void setup() { Serial.begin(115200); Serial.println("start..."); pinMode(LED_BUILTIN, OUTPUT); WiFiManager wifiManager; /*char string[] = "Smart_Device_"; String mac = WiFi.macAddress(); mac = mac.substring(9); mac.replace(":",""); String temp = strcat(string, mac.c_str());*/ digitalWrite(LED_BUILTIN, HIGH); wifiManager.autoConnect(); //if you get here you have connected to the WiFi Serial.println("connected..."); } void loop() { if ((WiFi.status() == WL_CONNECTED)) { // TODO Build Webpage for ACB in here for (int i = 0; i < 10; i++) { digitalWrite(LED_BUILTIN, HIGH); delay(1000); digitalWrite(LED_BUILTIN, LOW); delay(1000); } } else { } } ``` ### Debug Messages ``` - ``` ### Serial Output ``` ;l␀d��|␀�d�|␃␌␄␄�␄$�␄c<��␃�␓�r�c�␄c��og�lgn���␄cp8��l;l{$ ```
kerem closed this issue 2026-02-28 01:27:50 +03:00
Author
Owner

@raubuchs commented on GitHub (Sep 1, 2020):

After a complete reset of the controller (erase flash, power down, ...) the autoconnect works now

<!-- gh-comment-id:684650166 --> @raubuchs commented on GitHub (Sep 1, 2020): After a complete reset of the controller (erase flash, power down, ...) the autoconnect works now
Author
Owner

@tablatronix commented on GitHub (Sep 1, 2020):

sometimes the flash gets corrupt or changes after updated to esp lib

<!-- gh-comment-id:684859175 --> @tablatronix commented on GitHub (Sep 1, 2020): sometimes the flash gets corrupt or changes after updated to esp lib
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#957
No description provided.