Skip to content

14.1 can't connect to router on 14.1 on ESP8266 Wemos D1 mini #3690

Closed as not planned

Description

@jclsn

What happened?

After the upgrade to 14.1 WLED wasn't accessable anymore. Erasing the flash and flashing 14.0 solved the issue. Another upgrade to 14.1 resulted in broken wifi again. If you flash 14.1 manually, you can connect to the WLED-AP, but after you configure the router connection, things break.

To Reproduce Bug

Install 14.1 and connnect to existing network

Expected Behavior

WLED should connect

Install Method

Binary from WLED.me

What version of WLED?

14.1

Which microcontroller/board are you seeing the problem on?

ESP8266

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Pinned by softhack007

Activity

  1. blazoncek commented on Jan 15, 2024

    @blazoncek
    Contributor

    I would suspect WiFi issues (channel overlap, interference, etc).
    The new Arduino core used in 0.14+ for ESP8266 is more susceptible to WiFi issues.
    Try scanning for least used channel and force your AP to use that channel.
    Some settings like BSS transition and/or fast roaming are known to cause issues as well.

  2. raufis27 commented on Jan 16, 2024

    @raufis27

    Same issue with nodemcu. 14.0 works fine. Upgrade brakes wifi connectivity (using Unifi network).

  3. blazoncek commented on Jan 16, 2024

    @blazoncek
    Contributor

    I will describe the issue I had with one of ESP8266 devices which was sitting 30cm from access point and was unreachable over WiFi. There was another ESP32-S2 with similar issues though that one was far from any AP (>10m outdoor).

    With 0.13.x the ESP was reachable but was occasionally dropping in and out of WiFi. That was observable in UniFi controller (I use Ubiquiti UniFi with several APs and switches). The drops were rare and didn't last long.

    After I updated it to 0.14 (somewhere in July 2023) I immediately noticed that the device was visible and connected to the network but I was unable to connect to UI. It would just stall loading it. I went ahead an purchased another AP (UAP-AC-M) and installed it about 30cm from the device as it was in an awkward spot where WiFi signal was poor. It didn't help.
    I have several other WLED devices, one of them being the sync master. Whenever sync master sent notification packet the problematic device picked it immediately and all timed presets were triggering normally. That was a clear indication that the device itself was receiving WiFi signal (including NTP reponses) and when UI would load I could see signal strength to be almost perfect 100%.
    As it was an outdoor device (which participated in Christmas display successfully) it wasn't until last week that I finally delved into the problem and solved it. Not by changing WLED code but by reconfiguring WiFi.

    It turned out that I had to fix APs to have channel allocation permanent and dispersed as far as possible (the two APs on the same channel had to be physically furthest from each other), I also disabled BSS transitions and Fast roaming though these two didn't seem t have any real effect in my set-up.

    After all my APs were set to fixed channels (1, 6 and 11) and APs using the same channel were separated as far as possible, all connectivity problems went away. Immediately.

  4. sl1txdvd commented on Jan 18, 2024

    @sl1txdvd

    I have the same or a similar problem and it is definitely not the same as the 14.0 Wifi issues.

    With 14.0 I had connection problems that I thought came from a new device (which I had not used with WLED < 14), but maybe it's the new Arduino core then. Anyway I changed my Wifi settings to less crowded channels and it helped to some extent.

    However, immediately after the update to 14.1 the device (now hanging on the wall controlling an LED strip, 50cm to the AP, working flawlessly so far) became unresponsive. The UI would load slowly or not at all. I needed to change something in LED settings and it was impossible to get there.

    In the browser I was able to directly open the update section after a reboot and install 14.0. It took pretty long but eventually worked. After reboot everything worked again. So my problem is definitely something in 14.1.

    My device is NodeMCU v2 (ESP8266)

  5. blazoncek commented on Jan 18, 2024

    @blazoncek
    Contributor

    For list of changes and possible causes see changelog and explanations in #3685.

    As far as I can see there were no changes (except an option to force G mode on ESP8266) to networking. And the change of Arduino core happened somewhere in between 0.14.0-b1 and 0.14.0-b2 and not in 0.14.1.

    #3526, #3502, #3496, #3484, #3487, #3445, #3466, #3296, #3382, #3312, #3593, #3490, #3573, #3517, #3561, #3555, #3541, #3536, #3515, #3522, #3533, #3508, #3622, #3613, #3609, #3632, #3566, #3665, #3672

    @sl1txdvd what you are describing was exactly my case. Solved by WiFi reconfiguration. Unfortunately I do not know if we have any option to change WiFi operation from within WLED as we use standard approach which hasn't changed in a few years.

  6. sl1txdvd commented on Jan 18, 2024

    @sl1txdvd

    As I said, that solved my problems introduced by 14.0. Which works for me. But it does not solve the problems introduced by 14.1. As you say, Arduino core change was in 14.0. The same problem would not return in 14.1 then under the exact same circumstances while 14.0 is not affected. It's a different issue.

  7. sl1txdvd commented on Jan 18, 2024

    @sl1txdvd

    FWIW I just tried
    14.0 working fine
    14.0 to 14.1-b2 fast flash, fast reboot
    14.1-b2 generally working, two timeouts
    14.1-b2 to 14.1-b3 slow flash, one failed, the other was "successful" according to the UI
    14.1-b3 device does not work at all, had to flash via USB

    Back to 14.0, everything's fine.

  8. blazoncek commented on Jan 18, 2024

    @blazoncek
    Contributor

    Unfortunately I have no resolution for you but to stay on 0.14 or earlier.
    FYI 0.15 builds on top of 0.14.1.

  9. willmmiles commented on Jan 18, 2024

    @willmmiles
    Member

    @sl1txdvd Would you mind sending me a copy of your configuration, from the 'backup configuration' feature? I haven't been able to replicate your issue here on my test setup. I'd like to try with your specific settings.

  10. DibblesNL commented on Jan 18, 2024

    @DibblesNL

    another one with the same issue. also tried a reflash but still failed. 4 other devices running 14.1 are ok. but one doesnt like it.

  11. sl1txdvd commented on Jan 18, 2024

    @sl1txdvd

    @willmmiles I try to attach the config here. I changed the ssid of my wifi.
    I run a strip with 60 WS2812b LED on a 2.4A driver if that's relevant.

    cfg.json
    presets.json

  12. willmmiles commented on Jan 18, 2024

    @willmmiles
    Member

    Thanks, I think that's helped pin it down, I've been able to reproduce the OTA issue here.

  13. blazoncek commented on Jan 18, 2024

    @blazoncek
    Contributor

    @sl1txdvd does anything change if you use DHCP?

  14. CjonesLAB commented on Jan 19, 2024

    @CjonesLAB

    0.14.1 is buggy
    No Wireless

  15. 97 remaining items

  16. tfvlrue commented on Jul 28, 2025

    @tfvlrue

    I'm also seeing the same behavior where version 14 of WLED works fine, but higher versions cannot connect to Wifi. My APs are Unifi AC Pro models.

  17. removed
    stale
    on Jul 29, 2025
  18. DOCaCola commented on Sep 9, 2025

    @DOCaCola

    Same issue here. First time ever using WLED on a ESP8266. Have Ubiquiti APs.
    Tried with the current 0.15.1 and never got a stable wifi connection after connecting to my AP. Couldn't even open the web page. Lots of dropped packets on ping.
    Installed 0.14.0 and could access the WLED page right away...

    Update: Forcing the Ubiquiti AP to work on Channel 1 seems to fix the connection issue with the current version of WLED.
    If i set it to Channel 6 (as it was previously) the packet drops occur. I tested this back and forth to confirm. Also there are no other wifi networks in proximity that could degrade network performance otherwise.

  19. richard-scott commented on Dec 18, 2025

    @richard-scott

    I came here as I've just upgraded Google Wi-Fi Pro 6E Mesh to eero Pro 7, and my wled controller is the only thing not to want to connect to the new mesh.

  20. Suschibomber commented on Jan 21, 2026

    @Suschibomber

    Same for me. Switch my house to TP-Link AP and no Wifi connection at all with diffrent esp32d1 mini wled flashed boards :( frustrating.

  21. softhack007 commented on May 12, 2026

    @softhack007
    Member

    @coderabbitai please scan all comments of this issue ticket, and look for repeated patterns (WiFi, modules, _compat binaries, esp8266 framework releases, etc), and for solutions stated by users. Create an overview table to summarize your insights, and check for "hidden" aspects that could be common root causes.

  22. coderabbitai commented on May 12, 2026

    @coderabbitai
    Contributor

    @softhack007 — here is a full analysis of issue #3690 based on all comments.


    Issue #3690 — Pattern Analysis & Root Cause Summary

    1. Version Impact Matrix

    WLED Version ESP8266 Stability ESP32 Stability Notes
    0.13.x ✅ Rock solid ✅ Fine Universal baseline
    0.14.0 ✅ Mostly OK ✅ Fine Arduino core bump here (espressif8266 v4.1.0→v4.2.0, Arduino core 3.1.1→3.1.2)
    0.14.1 ❌ Mass failures ⚠️ Some crashes Zero WiFi code changes vs 0.14.0; webserver lock commit introduced here
    0.14.2 ⚠️ Partial fix ⚠️ Partial fix PR #3643 (JSON lock fix) merged; some users still broken
    0.14.4 ❌ Still broken ⚠️ Some issues Many reporters still affected
    0.15.0-bX ❌ Broken (standard) / ✅ Fixed (_compat) ⚠️ Some issues _compat builds resolve most ESP8266 reports
    0.15.1 ⚠️ Mixed ⚠️ Mixed Some still broken without _compat

    2. Hardware Affected

    Module Impact Notes
    ESP8266 (D1 Mini, NodeMCU v2, ESP8266-12F, ESP-01) 🔴 Heavily affected Overwhelming majority of reports
    ESP32-WROOM-32E (Athom controllers, QuinLED Dig Octa) 🟡 Some affected Manifests as crash/hang after 10–24h rather than immediate failure
    ESP32-S2, ESP32-C3 🟢 Not reported blazoncek runs ~27 of these without issue

    3. Access Point Patterns

    AP Type Reports Observation
    Ubiquiti UniFi (UAP-AC-, U6-) Very high Dominant in thread; may be coincidental (popular brand)
    eero 6 Pro Confirmed Multiple reporters
    TP-Link EAP Confirmed At least one reporter
    Mikrotik Confirmed At least one reporter
    Apple Airport Express Not reported as broken blazoncek's working setup uses these + UniFi with fixed channels

    Notable: The AP brand itself is likely not the root cause — the common factor is AP features (BSS Transition, Fast Roaming, 40MHz channels, auto channel selection) rather than vendor.


    4. Symptom Patterns

    Symptom Likely Cause
    Device connects to AP but UI completely unresponsive, massive packet loss Webserver OOM/crash or 40MHz channel incompatibility
    Device goes offline after 10–24 hours, won't reconnect Webserver crash/hang (heap exhaustion from concurrent requests)
    Device broadcasts its own SSID but nothing can connect to it Hard crash/hang — WiFi stack alive but task loop frozen
    OTA update fails or takes extremely long Memory pressure / webserver lock contention
    Segments update sequentially instead of simultaneously Lock contention in JSON buffer (commit cdc8640) blocking main loop
    Occasional short disconnects, reconnects within minutes BSS Transition / AP roaming handoff not supported by ESP

    5. Solutions Reported to Work

    Solution Addresses Reliability
    Roll back to 0.14.0 / 0.13.x All symptoms ✅ Universal workaround
    Flash _compat firmware binary Arduino core regression ✅ Confirmed by multiple users (Depechie, damocles-dev, AlexeiGitH)
    Force AP channel width to 20MHz (disable 40MHz/HT40) ESP8266 802.11 incompatibility ✅ Confirmed by casesolved-co-uk and others
    Fix AP channels to 1, 6, 11; physically separate same-channel APs Channel overlap / roaming ✅ Confirmed by blazoncek, timonych, DOCaCola
    Disable BSS Transition and Fast Roaming on AP Unsupported roaming protocols ⚠️ Partial — helps some but not all
    Custom build with -D WLED_DISABLE_ESPNOW ESP-NOW RF interference ⚠️ Untested by most reporters; suggested by softhack007
    PR #3643 (JSON lock fix) → in 0.14.2 ESP32 webserver crash ✅ Confirmed for ESP32 hang cases
    Factory reset + re-flash via USB Corrupted config on upgrade ✅ Confirmed by sl1txdvd

    6. Identified Root Causes

    Root Cause Evidence
    Arduino core 3.1.2 regression (ESP8266 WiFi sensitivity) Core bump in 0.14.0; _compat builds (reverting to old environment) fix the issue
    Webserver JSON buffer use-after-free / lock contention (commit cdc86402) Bisected by LordMike; causes OOM/crashes that look like WiFi drops
    40MHz channel width — ESP8266 is 20MHz-only per 802.11n Forcing 20MHz on AP resolves packet loss for some users
    ESP-NOW driver active even when disabled in settings softhack007 identified; constant RF activity may interfere with normal operation
    BSS Transition / 802.11r Fast Roaming — not supported by ESP stack AP-side disable partially helps some users

    7. "Hidden" Aspects & Subtle Root Causes

    1. Crash masquerading as WiFi failure. The most insidious pattern: the device appears to be on the network (UniFi shows it connected, it even broadcasts its own AP SSID) but is completely unresponsive. This is a frozen task loop or heap exhaustion, not a WiFi disconnection. LordMike confirmed this directly — the ESP32 stopped responding but its pushbutton relay still worked, proving the WiFi stack was alive.

    2. Lock contention cascade. The JSON buffer mutex introduced in cdc86402 (to fix a use-after-free) serialises all responses using the large buffer. Under concurrent requests (e.g., Home Assistant automations hitting multiple segments), the lock is held long enough to starve other requests, returning HTTP "retry in 1s" responses, which HA may then hammer again — creating a feedback loop until OOM.

    3. ESP-NOW silent interference. The ESP-NOW driver is unconditionally initialized in the newer core even when the feature is not configured. This may occupy RF resources and affect station mode reliability, especially at longer ranges or with busy APs.

    4. Config corruption on upgrade. sl1txdvd found that upgrading with certain configurations (particularly segment data in presets) could silently corrupt settings, making 0.14.0 also unstable until a factory reset was performed. Some "0.14.0 regression" reports may be post-upgrade config corruption rather than a firmware issue.

    5. Channel 13 (EU default). Some European users had APs on channel 13, which certain ESP modules do not support in their default regional configuration — causing a mismatch where the device can associate but has poor RF performance.

    6. Reproducibility bias. blazoncek's large fleet (10× ESP8266, 20× ESP32, 5× ESP32-S2/C3) works flawlessly because his AP setup already satisfies all the preconditions (fixed channels 1/6/11, separated APs, no fast roaming). This is why he couldn't reproduce — not because the bug doesn't exist, but because his environment already works around it.


    Summary

    The issue is multi-causal: the Arduino core 3.1.2 bump in 0.14.0 made ESP8266 WiFi more sensitive to AP misconfigurations, while the webserver lock contention introduced in 0.14.1 causes real crashes on both ESP8266 and ESP32 that look like WiFi drops. The _compat builds are the most reliable fix for ESP8266, addressing the framework regression. AP-side 20MHz enforcement and fixed channel allocation address the RF sensitivity aspect. PR #3643 addressed the ESP32 crash case. The ESP-NOW interference angle remains under-investigated.

  23. softhack007 commented on May 12, 2026

    @softhack007
    Member

    the webserver lock contention introduced in 0.14.1 causes real crashes on both ESP8266 and ESP32 that look like WiFi drops.

    @willmmiles correct me - I think this aspect is solved in 16.0.0, maybe also solved in 0.15.5 ?

  24. willmmiles commented on May 12, 2026

    @willmmiles
    Member

    Yes, I think so -- there's been a fair number of tweaks and improvements to the web server layer since then.

    FWIW, I can say that I have occasionally seen issues on my bench that look a lot like this: I'll have a unit that comes up in AP mode, UI is working flawlessly, but once I connected it to my wifi then suddenly it's all packet loss and dropped connections. I'll come back a week later and it'll be perfectly fine. Haven't been able to commit the time to troubleshoot where the packets are going.

  25. github-actions commented on Sep 10, 2026

    @github-actions

    Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs.
    Thank you for using WLED! ✨

  26. added
    stale
    on Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    connectivitystale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions