I want my xenon to do a task, fall a sleep, wake after some seconds up and do the task again… . However, using the sleep method did not work - he fell asleep but didn’t wake up:
STARTUP(Time.setTime(0));
void setup() {
Particle.publish("setup", "starting sleep test");
}
void loop() {
Particle.publish("sleep", "falling asleep now.");
System.sleep(SLEEP_MODE_DEEP,1);
}
(I got the first line from a similar question here, but this didn’t help)
I’m sure there must be an easy solution. Currently, I get “falling asleep now” once and then no message any more. Thank you!