bborncr / nextion

A simple Nextion HMI library for Arduino
GNU General Public License v3.0
127 stars 66 forks source link

Read from Nextion Screen #19

Open baarini opened 8 years ago

baarini commented 8 years ago

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.

Operrr commented 7 years ago

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

AndreasKouv commented 5 years ago

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.

baarini commented 5 years ago

Thanks, I'll try it!

raulcq01 commented 5 years ago

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