-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Wemos D1 mini ESP8266 wifi got stuck at debug message 'pm open,type:0 0' #8681
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
Can you remove (or comment) the Next step would be to set a flag whether you're connected (or simply check the |
Yes, so when i run the code without the secured WifiClientSecure it will connect properly. The WiFi.status() is returning the return code: 6 and therefore it will never break the while loop. I am really not sure if there is a proper dhcp allocation for the wemos. My router sometimes says yes (wemos has 192.168.2.113), but when it comes to the wifi connection failure my router says it has the ip 0.0.0.0 |
And when you try to initialize the |
Check out our docs related to git installation and see if that helps with the connection issue. Related to code... you don't have to use NTPClient lib. We always include SNTP lwip app, either use configTime or sntp_... functions (like here). Client will use the posix |
Hi there,
i have a Wemos D1 mini with ESP8266 on it and can connect to my wifi with the following code:
So i also set the "not go to sleep" command for wifi.
The problem is, that wifi connects only when i restart my wifi in router. If i don't restart it, then sometimes the wifi will connect properly, but only for a few times. Then the wifi connecting will get stuck with the following wifi debug message:
So it seems to be connected, but there is no ip address allocated and the wifi status never reaches the WL_CONNECTED state.
The connection got stuck at pm open,type:0 0
I thought this is a problem with 5GHz wifi, so i turned it off in my router, which is now only set up to 2,4 GHz.
And i also changed the wifi channel selection from below channel 11 in my router settings.
I am very looking forward for any hints.
Thanks in advance!
The text was updated successfully, but these errors were encountered: