Chat freely about anything...

User avatar
By Stewart
#95621 I'm trying to gather a bit of intel about scheduling a daily event using an ESP8266 and maybe ESPDailyTask.h.

I'm not finding any examples of using ESPDailyTask.h without the sleep mode, and with an active loop.

Can the
Code: Select alldailyTask.sleep1Day()
and
Code: Select alldailyTask.backToSleep()
simply be omitted to run loop code?
User avatar
By btidey
#95624 The ESPDailyTask library is all about deep sleep, i.e. waking up once per day, performing the task and then shutting down again.

If you want to schedule a task once per day then you should look at using one of the cron type libraries. These give the equivalent of Unix cron functionality giving very flexible scheduling including once per day.

e.g. https://github.com/Martin-Laclaustra/CronAlarms