How to wake up electron at particular time without external pins using

i need to wake up electron say @ 10 AM and publish some data for 2 hours and put in deep sleep mode and again wake up at @ 14 and publish some data for 2 hours and put in deep sleep mode upto next day 10 AM and do same

You just need to calculate the number of seconds from now till your desired wake time and provide this as parameter for the System.sleep() instruction.

1 Like