@paulvk That‘s true if you want to send the character
1. But the way I understood it, he actually wanted to send the value 0/1. If the intention is to send the characters, I wouldn‘t go with ASCII codes since that results in hard-to-read code. Just use
prints "1",0 (or
@lsmadeux I can only think of two reasons for ‘unsolicited’ messages/data: either your page 1 contains some sort of print code that gets executed when loading the page. Or your page 1 contains errors that aren‘t detected by the compiler and result in error messages at runtime. Common case are the usage of the
For both cases there are some less obvious possibilities that are hard to guess without knowing the source.
In case you got a lot of stuff on your page 1, you should look at Nextion2Text which converts the source file into simple text files that can be searched using ‘normal’ text/source editors. This can help a lot when you‘re searching for that one
prints among the 100 components on your page.
Edit: By looking at that additional data you can likely gain a lot of info about the origin, too. As @paulvk suggested, this can easily be done with the debugger/simulator.