I'm working on a project that has a Nextion display. The project has 3 pages on the Nextion and counting. I'm using the official Arduino Nextion library at the moment; but looking to use RayLivingston's version later on possibly.
I have the following issue:
I need to send data from the Arduino to the Nextion display to update components on page 0. I need to send different data for different components on page 1 and so on. I don't want to send data for the wrong page. I've heard about using global variables to store the values when on a different page; but I don't find that solution elegant.
To achieve this the Arduino needs to know what page the Nextion display is on. How do I do this? (Ideally using the library)