Chat freely about anything...

User avatar
By Stewart
#81450 I'm experimenting with my first very simple web server example from here: https://www.instructables.com/id/Smart-Phone-WiFi-Controlled-Garage-Door-Opener-Wit/

After being powered on and operating 20-30 minutes maybe, and inactive, it seems to not respond to requests. If I refresh many times it eventually responds. I usually can't ping it's IP address, but it's visible in my routers list of connected devices. After being restarted it works immediately.

My hardware is a Robotdyn ESP8266 Pro. https://robotdyn.com/wifi-module-esp8266-pro-8m-flash.html
My power supply is 5v 2amp switching.
Using Arduino IDE.

I've found a few old questions posted about this issue, but what's the latest solution?
User avatar
By QuickFix
#81453 What kind of regulator are you using to step down the 5V of the PSU to the 3.3V needed by the ESP?
The cause of most vague problems can be found in a wrong, unstable or just an unadequate power supply set up.

One other thing that could happen is when the ESP is only barely able to connect to the router and doesn't have automatic reconnection code.
When the connection (temporarily) gets lost for whatever reason, the ESP is unable to reconnect (it can't do this by itself, you actually have to program that yourself).
User avatar
By rudy
#81463
Stewart wrote:After being powered on and operating 20-30 minutes maybe, and inactive, it seems to not respond to requests.


I tried your code and I had no problems even with the code you posted. I had it running for more than an hour since the last access and it still worked when I did a new connection. What I did was access the page. Click the button a few times. Leave the page, then get back to it 40 minute later. Then again with over an hour wait. Still no problem.

I've found a few old questions posted about this issue, but what's the latest solution?


Keep in mind that what you read is not what actually might be true. Based on my tests, there is no issue. But you are experiencing the problem. Your hardware is different. The router, your PC. Whatever versions you are running.