-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Esp8266 Reconnection Problem With Version 2.4.0 #4445
Comments
Could you please
|
Thanks for your answer. I have uploaded a piece of code. Here in our office when i reboot modem device , esp catches this issue and tries to reconnect again. But sometimes it doesn't. This is the problem. It stops somewhere in the code. This is the log
As you can see code sometimes stops like this and doesnt try to reconnect again until i call reconnect manually. At this moment Wifi.Status() is WL_IDLE_STATUS. So i have added a timer in my sketch that checks connection status and if it is not "connect" then i call "reconnect" function. And i also install latest git version by help of https://github.com/esp8266/Arduino#using-git-version link. Does this might cause problem? |
Can you try with |
This sounds alot like and issue I was seeing also, where I know the ap exists, but |
Hi dave. Ok i will try your suggestion. And leave feedback again. |
Hi tablatronix I am actually trying with theatest git version. It is not solved i think. |
You'll need a smaller minimal sketch to reproduce, one with no libraries. |
I could not reproduce with basic sketch and staging, tried all sorts of stuff. Did not try the example sketch there are too many libs and variables |
tablatronix , Thank you for your help. The example sketch is no so much different from basic sketch. I dont encounter this problem with some modems . Here at our office there is a modem brand name is "GrandStream". This modem causes this problem sometimes. |
Example taken from [this issue discussion](esp8266/Arduino#4445)
There have been several fixes merged since this was opened, especially into the lwip glue. The current connection status has thoroughly tested. If there are problems connecting to a specific wifi router, the problem is either in the router, in which case there is nothing we can do, or in Espressif's SDK, in which case there is nothing we can do in this repo. |
Basic Infos
Hardware
Hardware: ESP-12
Core Version: 2.4.0
Description
With previous version of SDK, esp tries to reconnect wifi network when its connection is lost. But with 2.4.0 version when I reboot modem esp can not recognize "disconnect" state. I have tested this issue with both of version. Esp with 2.3.0 version work well.
Settings in IDE
Module: Generic ESP8266 Module
Flash Size: 4MB
CPU Frequency: 80Mhz
Flash Mode: qio
Flash Frequency: 40Mhz?
Upload Using: OTA
Reset Method: ck
Sketch
Debug Messages
I have set Serial.setDebugOutput(true); and look at the logs. Here are the logs with 2.3.0 version ;
Here are the logs with 2.4.0 version ;
It waits but it doesnt reconnect wifi network again . (Connection State is most probably WL_IDLE_STATUS)
The text was updated successfully, but these errors were encountered: