How reebot Controller

Do you have a question on how to do something.
Ask in here.

Posts: 20
Joined: Fri Mar 11, 2016 4:39 pm
PostPosted: Sun Mar 04, 2018 4:48 pm
Hi, I need know if exist some instruction for schedule one controller reboot. I did't find that.
Thank you a lot.

Posts: 4
Joined: Fri Jan 12, 2018 6:33 am
PostPosted: Sun Mar 04, 2018 6:22 pm
Hi there.

//reboots at midnight
if (hour()==0 && minute()==0 && second()== 0) while(1);

Posts: 20
Joined: Fri Mar 11, 2016 4:39 pm
PostPosted: Sun Mar 04, 2018 7:08 pm
libertyaquarium wrote:Hi there.

//reboots at midnight
if (hour()==0 && minute()==0 && second()== 0) while(1);


Hi Thank you, but what are the instruction for reboot? just reboot? Sorry, I don't find one instruction sets.

Thanks again
User avatar
Posts: 2748
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Sun Mar 04, 2018 7:13 pm
there is no instruction for reboot. the way you do it is to run a continuous loop and wait for the watchdog timer to reset the controller.

Sent from my XT1585 using Tapatalk

Posts: 20
Joined: Fri Mar 11, 2016 4:39 pm
PostPosted: Sun Mar 04, 2018 8:25 pm
Thank you so much. I will try.

Greetings from Argentina.

Return to How do I code ...

Who is online

Users browsing this forum: No registered users and 3 guests