• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 goes to sleep after some time and will not update

Q&A Forum › Category: ESP32 › ESP32 goes to sleep after some time and will not update
0 Vote Up Vote Down
f. sanford asked 3 years ago

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?

5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
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?
Regards,
Sara

0 Vote Up Vote Down
f. sanford answered 3 years ago

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.

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Ok. Then, let me know the results.
Regards,
Sara

0 Vote Up Vote Down
f. sanford answered 3 years ago

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.

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Great!
I’m glad you found the issue.
I’ll mark this issue as resolved.
If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.