I tried with print (depreciated);
Best results obtained with prints <> <>.
The mcu serial on wich i’m testing, is arduino mega serial port 1.
On the simulation of nextion ide, when i send 64 (hex 40)
i obtain a sort of bytes that seem errors code return, but most probably a “completion” in 4 bytes of the byte i “trasmit”.
On the other side, i actually receive in arduino serial port, yes, the byte i’ve sent from nextion, but sometimes (not ever) other unexpected bytes, that seem to close a nextion command (FF FF FF).
I think that must be something written by nextion itself to complete some kind of command.
After 3 or 4 of all that, Nextion transmit correctly one byte at a time.
I think i firstly must write somenting like a nextion command, and after the single bytes.
To be clear, the transmitted byte from nextion to arduino must be the index of an array
contained in arduino code, so, what i need is one byte, at an interval of a timer in nextion.
The byte value change non sequentially at each timeout, it’s a stream triggered by the timer.