Hello,
I just started using a basic display from Nextion.
Got to view some variables from esp and also setting some.
i was asking mcu to send me vars all the time i was changing pages and updating just that pages vars (was quite slow and useless asking all the time vars), later i thought to get a page called variables where storing all the variables as global and asking mcu to update it.
So just at the beginning I send a printh to the controller to update my vars.
After that i wait a second and i change page, in the preiniatilize event of that page i set some number or text to get its val or txt from global variables.
Ok fine it’s work the first time, but later when i’m gonna recall that page it cannot get variables from global like if it doesn’t store it…
I just tried to use a button to getting again vars from page where are stored as global and seems like they are empty…
My intention is to store variables and getting them between pages, later from controller updating them every n seconds or also asking to update it from nextion if something is wrong.
At the moment i’m asking to refresh vars from esp all the time i change page but it’s worst than before because i have to ask for 30 vars versus the 10 that i need.
btw i have basic version no rtc or eeprom.
Thanks a lot, have a nice day.