I am happy that my first ESP32 project will work, but now I want add in my code a deepsleep mode. Goal: send automatic the temperature every hour and then fall into a deep sleep
because I am a newbie, so it’s not so easy to follow the tutorial…so I would ask for some support what code I have to add for the deep sleep mode
While I am a newbie like you, I have found this snippet to work. However, deep sleep also causes you to no longer be able to update your FW over wifi, unless you have fairly long wake modes. I ended up removing it because of this. Would be much more useful I think when powering devices from batteries.
deep_sleep:
run_duration: 6s
sleep_duration: 1min
This will sleep for one minute, wake up, send data then back to sleep for one minute.