nextion icon indicating copy to clipboard operation
nextion copied to clipboard

send value to a component text an other page

Open anthology opened this issue 6 years ago • 2 comments

hello it's possible to send a value of componentText on other page ? this code work on the page where temp1 is but not on other page myNextion.setComponentText("temp1", String(temp1)); it's possible to send like this myNextion.setComponentText("page1.temp1", String(temp1)); thanks a lot

anthology avatar Oct 18 '18 07:10 anthology

Yes it is possible: The vscope of the component must be set as global.

digi-thomas2003 avatar Nov 11 '18 18:11 digi-thomas2003

hello thanks for your response, i have set global to all vscope of my component but when i send date, i received error

thanks a lot

anthology avatar Nov 11 '18 19:11 anthology