ESP12, rules question regarding reboot or restart

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
voyager46
Normal user
Posts: 12
Joined: 24 Mar 2016, 17:15
Location: Germany

ESP12, rules question regarding reboot or restart

#1 Post by voyager46 » 10 Aug 2016, 20:00

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?????

Martinus

Re: ESP12, rules question regarding reboot or restart

#2 Post by Martinus » 11 Aug 2016, 21:01

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

voyager46
Normal user
Posts: 12
Joined: 24 Mar 2016, 17:15
Location: Germany

Re: ESP12, rules question regarding reboot or restart

#3 Post by voyager46 » 11 Aug 2016, 21:31

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests