nextion icon indicating copy to clipboard operation
nextion copied to clipboard

Read from Nextion Screen

Open baarini opened this issue 8 years ago • 4 comments

Hi,

I noticed that these Libraries doesn't have the features to read inputs from Nextion to Arduino. i.e. read the Text Component Value to Arduino or the Number Component value to Arduino. Does anyone has such a code to do it?

Thanks.

baarini avatar Jul 02 '16 15:07 baarini

int i=myNextion.getComponentValue("page0.n0"); - Worked string i=myNextion.getText("page0.va0"); - No worked

Operrr avatar Dec 08 '16 22:12 Operrr

string i=myNextion.getText("page0.va0"); - No worked

you try to get text from Nextion, but as I understand you have a "numeric" variable which is not text. try to convert the "text_data" you have received into "int" type data.

AndreasKouv avatar Jan 25 '19 18:01 AndreasKouv

Thanks, I'll try it!

baarini avatar Jan 26 '19 06:01 baarini

i need to save a text value to char from Text component in arduino, any ideas?

raulcq01 avatar Feb 14 '19 21:02 raulcq01