My android app store start and stop time of switch in realtime database in milli format.
In ESP32 I use super loop to handle relays in scheduled time, my logic is in super look take current millis and then read millis stored in firebase database, subtract millis and if diff is within tolerance turn on or off relay.
Guys is this logic ok?I know this will affect performance, please share your thoughts or links if there is something similar to my requirement.
Your topic has been moved. Please do not post in "Uncategorized"; see the sticky topics in Uncategorized - Arduino Forum.
your post makes no sense.
While millis() provides a relatively accurate representation of time, it may drift over long periods.
Sorry i posted it from mobile, and that uncategorised got selected as one of category
Thanks, is this efficient way to check scheduled time, or is there any better solution.