nextion
nextion copied to clipboard
Read from Nextion Screen
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.
int i=myNextion.getComponentValue("page0.n0"); - Worked string i=myNextion.getText("page0.va0"); - No worked
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.
Thanks, I'll try it!
i need to save a text value to char from Text component in arduino, any ideas?