-
Notifications
You must be signed in to change notification settings - Fork 13.3k
WIFI.isconnected stil false after router reboot but ping requests reponse etc works #4210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am also looking for a proper solution here. If I forcefully disconnect my device from my router, it reconnects but the status is continuously reported as WL_DISCONNECTED. As a workaround you can call |
I have the same problem. I expected, that function I compile my sketch by Arduino IDE v. 1.8.5:
Serial monitor output:
|
Library from master branch seems really works properly in this place! Thank you! |
@d-a-v I hurried with conclusions, when said that I compile my sketch by Arduino IDE v. 1.8.5:
I've tried run this sketch with Wi-Fi Access Point, created by Android smartphone. Serial monitor output, when
Serial monitor output, when
I've tried run this sketch with other Wi-Fi router (D-Link DIR-860L). Serial monitor output, when
Serial monitor output, when
|
And second bug, which I encountered, function
Serial monitor output:
UPD: Now |
@RAlexeev lwip2 is meant to follow lwip1.4 behavior regarding link layer connection status. |
Using
Serial monitor output for lwip2:
Serial monitor output for lwip1.4:
|
Thanks ! |
I remember that some time ago I didnt have these problems. And now it seems to me that it happened after erasing flash: Sketch + WiFi Settings. If I select this errasing option, then function
If I upload this sketch, erasing only sketch, then |
Thanks for the report, |
Thank you!
My sketch:
First execution after firmware uploading:
Second execution (only restart without firmware uploading):
|
As I understand, #include <ESP8266WiFi.h>
void setup() {
Serial.setDebugOutput(true);
Serial.begin(115200);
delay(30000);
Serial.print("SSID: ");
Serial.println(WiFi.softAPSSID());
Serial.print("PSK: ");
Serial.println(WiFi.softAPPSK());
Serial.print("IP: ");
Serial.println(WiFi.softAPIP());
WiFi.persistent(false);
WiFi.mode(WIFI_AP);
WiFi.softAP("My_ESP");
Serial.print("SSID: ");
Serial.println(WiFi.softAPSSID());
Serial.print("PSK: ");
Serial.println(WiFi.softAPPSK());
Serial.print("IP: ");
Serial.println(WiFi.softAPIP());
delay(30000);
WiFi.softAPdisconnect();
delay(1000);
Serial.print("SSID: ");
Serial.println(WiFi.softAPSSID());
Serial.print("PSK: ");
Serial.println(WiFi.softAPPSK());
Serial.print("IP: ");
Serial.println();
}
void loop() { } Serial monitor output:
Restart ESP
Sometimes I see these three networks at the same time:
May be you could give me a clue how to disable default SoftAP at start. |
Closing as duplicate #7432, let's follow-up there ! |
Hardware
Hardware: sonoff basic and, nodemcu
Core Version: 2.4
Description
hi
i found out then after reboot my router esp reconnects to network response to pings
even handle webserwer etc
but i disable my home wifi during nights and have some function to hanndle night and other for day
and at morning after my home wifi is enabled again
isconnected still return false..
checked also
if (WiFi.status() == WL_CONNECTED)
it also still return false
is there any other way to handle it propertly ?
on 2.3 (WiFi.status() == WL_CONNECTED) was working fine....
Thank you and best regards
The text was updated successfully, but these errors were encountered: