Page 1 of 1

ESP12, rules question regarding reboot or restart

Posted: 10 Aug 2016, 20:00
by voyager46
Why is the ESP rebooting like mad for several times using this Rules:
On Clock#Time=All,19:10 do
reboot // reboot only this module
endon
On Clock#Time=All,19:15 do
SendToHTTP 192.168.0.165,80,/?cmd=reboot // reboot module on IP 165 5 Minutes later.
endon

Even if the second On Clock# is removed it boots for several time. Would like to reboot all my ESPs from the first one.
Is there an issue in the reboot function?
Anyone any idea?????

Re: ESP12, rules question regarding reboot or restart

Posted: 11 Aug 2016, 21:01
by Martinus
I think it reboots for exactly one minute?
Normally the clock event would trigger only once, but since it reboots the ESP is unaware of it's previous actions and will trigger again.
As long as the real time matches the event rule (and that's true for one minute...)

You could check what happens if you insert a 60 second delay like this:

Code: Select all

On Clock#Time=All,19:10 do
  delay 60000
  reboot // reboot only this module
endon

Re: ESP12, rules question regarding reboot or restart

Posted: 11 Aug 2016, 21:31
by voyager46
I have completely ignored this fact. I'll try the Delay. But would it not be meaningful to set a Flag when the reboot command is called and clear it after 1 minute.