I'm trying to control a Nextion Display via a Python3 script.

Using Windows Terminal I'm able to control it.

For example to change the text of a control I send the following:

t0.txt="test" followed by 3 time 0xFF via "send hex"

My Python3 script using PySerial is the following:

```
import serial
s = serial.Serial(port='COM5',baudrate=9600)
escape='\xff'.encode('iso-8859-1')
test=b't0.txt="test"'
s.write(test)
s.write(escape)
s.write(escape)
s.write(escape)
s.close()

```

but it is not working.

Any ideas?

Thank you so much