Page 1 of 1

best way to delay ESP32 CAM for 2 days

Posted: Mon May 03, 2021 3:07 am
by KenCasey
Hello, I'm new to programming, and am trying to find the best method of delaying my program 48 hours before the next line starts.
i'm looking at delay(), startTimer(), sleep().. i'm not sure which one to use, or which one is the best choice.

I'm using a ESP32-CAM by AI-Thinker

I'm wondering if someone could help with a "best practice" for halting the program for 2 days.

Thanks!

Re: best way to delay ESP32 CAM for 2 days

Posted: Mon May 03, 2021 6:07 am
by alanesq
This may be of interest: https://www.hackster.io/nickthegreek82/ ... ial-4398a7

If the timing needs to be accurate you could look at using NTP over wifi to get the actual time or use a Real Time Clock (RTC) module.