I saw you had a sleep on no serial function so i wondered if there is there a way for the nextion to look for serial comms and if there are no comms it says it in a textbox?
So its like
If serial=0; {
T0.set= No serial found
}
Else {
}
Not actual code!!
Ulrik Stokkebokjær