Display receiving data but not updating

I an new to Nextion. I am sending, via 9600 baud serial: the object name, the value and 3x 0xff.

The needle will not update. I see in the debugger the string I am sending. The transmitter is an Adafruit Feather M4 which has a tough to use serial library. I will include code below picture. I feel like the problem may be data type but in the debugger, the values are correct.

https://i.imgur.com/bAxLtWc.png

rpmForSerial = str(RPM)

uart.write(bytes("needle.val=",'ascii')) #feather uart will not accept string type
uart.write(bytes(rpmForSerial,'ascii'))
uart.write(bytes("0xff",'ascii'))
uart.write(bytes("0xff",'ascii'))
uart.write(bytes("0xff",'ascii'))

I found a solution. It was the data type. Replaced the last three lines with:

termination =bytearray( [0xff, 0xff, 0xff])
uart.write(termination)