Watchdog system

I want to implement a watchdog system. If no serial is received for x seconds, the display should switch to another page. When serial is received again, it should switch back to the normal page. How can I do this?

Use a timer. In the Timer event, change to another page using the page command.

1 Like

How to reset the timer when serial has been received?

You do not have to when the timer sends it to the other page it is reset , in this other page when you get serial input you send it back to the first page timer starts again as its not global. It is best to have a look at the nextion instruction set the display may be able to do a lot if not all that an outside micro may be doing.

It should only go to the page when no serial has been received. How do I check that then?