DanNixon / NeoNextion

Arduino library for the Nextion displays
https://dannixon.github.io/NeoNextion
GNU General Public License v2.0
48 stars 34 forks source link

Use Case to Send Page Name in Send Command #39

Open pedroski111 opened 6 years ago

pedroski111 commented 6 years ago

I would like to update a global text variable from another page. However, your send command function doesn't prefix the page so it is never received. There is a strong usecase for this. Can you modify it please?

Trying to achieve the following command structure:

Serial.print("**page2**.tInvAddr.txt=");
Serial.print("\\"");
Serial.print(inverterAddress);
Serial.print("\\"");
Serial.write(0xff);
Serial.write(0xff);
Serial.write(0xff);
DanNixon commented 6 years ago

Seems a reasonable feature. It would however require the page name of each widget to be stored (only the page index is currently).

I have no time to devote to this project and I don't use these displays anymore so am not in a position to make this change myself. If you look how widget names are handled then it should be easy enough to add page names in a similar way.

pedroski111 commented 6 years ago

Thanks for the info. What displays do you use now? Cheers.