-
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 Wifi connection often disconnects (bcn_timout) #5083
Comments
|
I tried only |
After two days of testing, after applying that command, I had no more disconnections. |
Did you mention this line "WiFi.setSleepMode(WIFI_NONE_SLEEP)" in setup ? |
I think so. |
My code: void setup() { |
Thanks @stefanodelbosco |
I am having this issue suddenly , will not connect at all , if it does it disconnects quickly after
|
It seems that if I call analogread too often my wifi drops out, I am not sure what mechanism is going on , I am trying to see how the adc works and how long the reads take and see if it is a wifi servicing issue but not enough for wdt.. does anyone know how to ensure wifi has time to service? Is a yeild() enough? |
I'm still stuck on this same problem - the WIFI keeps dropping and I have to reconnect. I have maybe one or two seconds before it drops and has to reconnect. I have the board version 2.5.1 and an ESP-12S MCU I'm trying to use for simple UDP broadcasts. Does anybody have this WIFI dropping problem fixed yet? |
@e346615 you need to test with latest git before asking that. |
Yes, I did, but I read somewhere that only version 2.5.1 worked. I tried both, but neither are working for me. |
My problem was solved with this command WiFi.setSleepMode(WIFI_NONE_SLEEP); plus WiFi.mode(WIFI_STA);. After this it is stable. Thank you! |
it seems that the NodeMCU/ESP 8266 is not reliable for IoT projects where we need continuous wifi connectivity. It goes most of time in sleep mode and doesn't respond to the commands. Ideal all time wifi active should be its state. All wakeup commands fails most of time to wake up the nodemcu/esp8266 |
@pryadav333 This thread is closed. Please open a new issue if you still have this problem with version 2.6.0 of this core. |
I have this issue on latest release of core: 3.0 . I don't understand why the issue is closed. Please help out with a direction to proceed? I tried |
There is one rule of thumb in such situation - do a full chip erase before uploading your code. I guess that the problem is by switching SDK version using new core 3.0.0 vs the old one so rfcalib/config area is corrupted... |
FYI: I have esp8266/nodemcu devices with uptimes over 60 days and continuous wifi without any problem. |
For me, it works fine after Very grateful to @Pablo2048 |
WiFi has been crashing every day or so recently. Google says this might help Source: esp8266/Arduino#5083
Platform
Settings in IDE
Problem Description
I looked for a solution between the various issues but none worked right now.
I have updated sdk to the latest version with git
The connection to the WiFi remains active for a time ranging from 30 seconds to 6 hours.
The module disconnects and reconnects by the connectDeviceToWiFi () function.
I tried to lower the time beecon in the router. Now it's every 30 ms (default 100ms).
I've been trying for three days to find a solution but the situation is not changing.
I tried with two different modules near the router and both give problems.
The RSSI signal is always between -70 and -78. I did a -68 signal tests but the problem persists.
I hope someone can help me.
MCVE Sketch
ESP8266CustomTools::connectDeviceToWiFi()
Debug Messages
The text was updated successfully, but these errors were encountered: