best way to delay ESP32 CAM for 2 days

KenCasey
Posts: 1
Joined: Mon May 03, 2021 3:00 am

best way to delay ESP32 CAM for 2 days

Postby KenCasey » Mon May 03, 2021 3:07 am

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!

alanesq
Posts: 86
Joined: Thu Dec 14, 2017 8:38 pm

Re: best way to delay ESP32 CAM for 2 days

Postby alanesq » Mon May 03, 2021 6:07 am

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.

Who is online

Users browsing this forum: axellin and 136 guests