Skip to content
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

HTML server down after a while (STA mode) #41

Open
magoblin opened this issue Jun 13, 2020 · 0 comments
Open

HTML server down after a while (STA mode) #41

magoblin opened this issue Jun 13, 2020 · 0 comments

Comments

@magoblin
Copy link

magoblin commented Jun 13, 2020

Hello!
I have my first ESP8266 module (NodeMCU 1.0) and I was able to make a HTML server on AP and STA mode.
So the next level was keep the server in STA mode working as much as possible on my home network so whenever I need the data acquired by a temperature and humidity sensor (I2C) I could connect by any device and get it on the browser.
It works great, but then I noticed that after a while the server did not answer my requests, ene the ping did not have answer from the ESP. As soon as I reset the board I get the webpage right away.
At this point I have not any clue about what happens but then I wondering if the ESP or WI-FI module was on a kind of “sleep mode”.
The loop works fine since I included a routine that shows the parameters (temperature and humidity) whenever I push the “flash” button on an Oled display. It works perfect so included a routine to reconnect the module to my network.
So I left the board connected to a 5V phone charger (1amp) overnight and after 30 minutes all works fine but on the middle of the night I try to retrieves the data and again the HTML server was not available. I push the button and the browser shows me the data.
The router is stable, the IP of the ESP does not matter if is assigned by the router or I set it out manually.
I guess something is going to sleep without I instructed to do so.
Anybody has experienced the same issue?
I have googled it and I found some very old forum but with no conclusion. They made a workaround with “thiker” function.
Please tour comments, ideas and if someone found the reason and have a solution....even better!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant