Start a new topic
Solved

nextion.print("valor_teste.txt=") doesn't work

I'm usindg arduino and ..the Lcd works perfect when using numeric field.. but when i try to send characters to the lcd it doesn't work..



This one Works perfect! (uses a numeric field on nextion editor)

 nextion.print("valor_1.val=");

 nextion.print(millis());

 nextion.write(0xff);

 nextion.write(0xff);

 nextion.write(0xff);


This one DOES NOT WORK! (uses a text field on nextion editor)

 nextion.print("valor_teste.txt=");

 nextion.print("hello");

 nextion.write(0xff);

 nextion.write(0xff);

 nextion.write(0xff);



Could anyone help?


Try `nextion.print("\"hello\"");` instead.


1 person likes this

Tks Scruff. Worked now!!


1 person likes this

try with :      myNextion.setComponentText("valor_teste.txt", "hello");