Please see page 75 in Firebase_Web_App_ESP32_ESP8266_V1.
When I set it up everythning works great but if I wait some time (hours) the thing seems to go to sleep and stops reporting changes in temperature, humidity, pressure.
Also, after it seems to ‘time out’ it does not update the message stroed in the realtime database when it is changed.
If I were to use this to remotely monitor temperature / humidity I would have to go manually reset it every so often.
Is there a way to keep it alive?
It should be always live. What you describe is not the usual behavior.
How are you powering your board?
Is it possible that the power source that you use goes into deep sleep or something?
And what is the board that you’re using?
If it loses power I would expect the display to turn off but it does not.
I am powering it from the usb on my laptop.
I will change the source to something else to see if that makes a difference.
going to a different power source worked.
apparently the laptop souce somehow put the esp32 in sleep after it operated for a few hours overnight.
Thank you for your help.