[GH-ISSUE #31] ap doesn't show up, ip reports 0.0.0.0 #25

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

Originally created by @tablatronix on GitHub (Dec 23, 2015).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/31

I read this somewhere, maybe in the source code, I cant remember.

I get a

Entered config mode
0.0.0.0
*WM: 
*WM: Configuring access point... 
*WM: ESP457230
*WM: AP IP address: 
*WM: 0.0.0.0
*WM: HTTP server started

And my AP is never available to devices.

Do you know what causes this ?

Originally created by @tablatronix on GitHub (Dec 23, 2015). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/31 I read this somewhere, maybe in the source code, I cant remember. I get a ``` Entered config mode 0.0.0.0 *WM: *WM: Configuring access point... *WM: ESP457230 *WM: AP IP address: *WM: 0.0.0.0 *WM: HTTP server started ``` And my AP is never available to devices. Do you know what causes this ?
kerem closed this issue 2026-02-28 01:22:57 +03:00
Author
Owner

@tablatronix commented on GitHub (Dec 23, 2015):

delay(500); // Without delay I've seen the IP address blank

hmmm

<!-- gh-comment-id:166796018 --> @tablatronix commented on GitHub (Dec 23, 2015): `delay(500); // Without delay I've seen the IP address blank` hmmm
Author
Owner

@tzapu commented on GitHub (Dec 23, 2015):

hi, tried it with delay?
never seen it like this in the non modified framework, maybe due to the new callback?

maybe try the simplest autoConnect example

<!-- gh-comment-id:166815041 --> @tzapu commented on GitHub (Dec 23, 2015): hi, tried it with delay? never seen it like this in the non modified framework, maybe due to the new callback? maybe try the simplest autoConnect example
Author
Owner

@tzapu commented on GitHub (Dec 23, 2015):

hi,

i ve just noticed this happening if i have
wifiManager.resetSettings(); in code.

do you have that function call in your code?

<!-- gh-comment-id:166912943 --> @tzapu commented on GitHub (Dec 23, 2015): hi, i ve just noticed this happening if i have wifiManager.resetSettings(); in code. do you have that function call in your code?
Author
Owner

@tablatronix commented on GitHub (Dec 23, 2015):

I forgot I added a delay in setup() for debugging something to make sure a pin was low before starting up stuff.

setup(){
delay(200);

It must be doing some init blocking, which is odd.. But it is probably in the main esp8266 library, so ill close this.

<!-- gh-comment-id:166920301 --> @tablatronix commented on GitHub (Dec 23, 2015): I forgot I added a delay in setup() for debugging something to make sure a pin was low before starting up stuff. ``` setup(){ delay(200); ``` It must be doing some init blocking, which is odd.. But it is probably in the main esp8266 library, so ill close this.
Author
Owner

@tzapu commented on GitHub (Dec 23, 2015):

it s very odd, i have noticed this happens when i do WiFi.disconnect() and have a delay after.
with no delay after disconnect, everything works fine
quite weird indeed

<!-- gh-comment-id:166921580 --> @tzapu commented on GitHub (Dec 23, 2015): it s very odd, i have noticed this happens when i do WiFi.disconnect() and have a delay after. with no delay after disconnect, everything works fine quite weird indeed
Author
Owner

@tablatronix commented on GitHub (Dec 23, 2015):

Yeah and I cannot reproduce yet with a simple test. ( no wifimanager)

<!-- gh-comment-id:166923500 --> @tablatronix commented on GitHub (Dec 23, 2015): Yeah and I cannot reproduce yet with a simple test. ( no wifimanager)
Author
Owner

@tablatronix commented on GitHub (Dec 23, 2015):

With delay(100) it works again, i am gonna guess this is a race condition against the esp8266 libs auto connect.

This says that it will auto connect if there is a stored SDK settings
https://github.com/esp8266/Arduino/issues/810#issuecomment-142347864

<!-- gh-comment-id:166926473 --> @tablatronix commented on GitHub (Dec 23, 2015): With delay(100) it works again, i am gonna guess this is a race condition against the esp8266 libs auto connect. This says that it will auto connect if there is a stored SDK settings https://github.com/esp8266/Arduino/issues/810#issuecomment-142347864
Author
Owner

@tzapu commented on GitHub (Dec 23, 2015):

well, i got a minimum sketch to replicate this without WiFiManager
better report it to esp8266 arduino

#include <ESP8266WiFi.h>

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  WiFi.disconnect();
  delay(200); //this delay, if you comment out it all works, if left, softAPIP returns 0.0.0.0
  WiFi.mode(WIFI_STA);
  WiFi.begin("", "");
  int connRes = WiFi.waitForConnectResult();
  WiFi.mode(WIFI_AP);
  //assuming connecting failed
  WiFi.softAP("asdfghj");
  delay(500); 
  Serial.println("");
  Serial.println(WiFi.softAPIP());
}

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

}
<!-- gh-comment-id:166926664 --> @tzapu commented on GitHub (Dec 23, 2015): well, i got a minimum sketch to replicate this without WiFiManager better report it to esp8266 arduino ``` #include <ESP8266WiFi.h> void setup() { // put your setup code here, to run once: Serial.begin(115200); WiFi.disconnect(); delay(200); //this delay, if you comment out it all works, if left, softAPIP returns 0.0.0.0 WiFi.mode(WIFI_STA); WiFi.begin("", ""); int connRes = WiFi.waitForConnectResult(); WiFi.mode(WIFI_AP); //assuming connecting failed WiFi.softAP("asdfghj"); delay(500); Serial.println(""); Serial.println(WiFi.softAPIP()); } void loop() { // put your main code here, to run repeatedly: } ```
Author
Owner

@tzapu commented on GitHub (Dec 23, 2015):

tracking https://github.com/esp8266/Arduino/issues/1292

<!-- gh-comment-id:166927043 --> @tzapu commented on GitHub (Dec 23, 2015): tracking https://github.com/esp8266/Arduino/issues/1292
Author
Owner

@tablatronix commented on GitHub (Dec 23, 2015):

I added a

void setup() {
    WiFi.mode(WIFI_OFF);  
    delay(200);

to fix for now.

<!-- gh-comment-id:166929504 --> @tablatronix commented on GitHub (Dec 23, 2015): I added a ``` void setup() { WiFi.mode(WIFI_OFF); delay(200); ``` to fix for now.
Author
Owner

@tablatronix commented on GitHub (Dec 23, 2015):

Of course i think that workaround also breaks STA connections, i think this is an issue with dhcp client and servers starting up, either way someone smarter can look at the issue I created and figure it out.

Thanks

<!-- gh-comment-id:167001012 --> @tablatronix commented on GitHub (Dec 23, 2015): Of course i think that workaround also breaks STA connections, i think this is an issue with dhcp client and servers starting up, either way someone smarter can look at the issue I created and figure it out. Thanks
Author
Owner

@tzapu commented on GitHub (Jan 9, 2016):

this seems sorted with the latest github changes and sdk 1.5.1

<!-- gh-comment-id:170257533 --> @tzapu commented on GitHub (Jan 9, 2016): this seems sorted with the latest github changes and sdk 1.5.1
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#25
No description provided.