Skip to content

WLAN very slow to connect and dropping out #2922

@zpin

Description

@zpin

What happened?

WLAN seems to be very unreliable on my D1 mini with an ASUS router.

To Reproduce Bug

I just installed the latest version of WLED and it took very long to connect at all. First it said WLAN connection failed then when I went away from the PC and back eventually it did connect.

Expected Behavior

WLAN should connect within seconds not several minutes.

Install Method

Binary from WLED.me

What version of WLED?

0.13.3, 0.13.1, 0.13.0-b7

Which microcontroller/board are you seeing the problem on?

ESP8266

Relevant log/trace output

No response

Anything else?

I have worked with the D1 mini before with custom applications and had the same issue there, it seems to be related to ASUS routers somehow, at least that seems to be the common factor with other people having a similar issue.
The way I fixed it there was to use WiFi.setPhyMode(WIFI_PHY_MODE_11G);. I tried the same with WLED (changed WIFI_PHY_MODE_11N to WIFI_PHY_MODE_11G in wled.cpp) and it actually fixed the issue for me. Looking at other people having issues with WLED and ESP8266 devices, maybe that's the solution for them as well?

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconnectivityIssue regarding protocols, WiFi connection or availability of interfacesstaleThis issue will be closed soon because of prolonged inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions