I noticed when trying to get the page ID, I was getting an array out of bounds exception after using the 'sendme' command.
The response from nextion when you issue this command is:
0x66 0xff 0xff 0xff
After stripping the Response code (0x66) raw[] is left as simply the pageID. The _command function tries to access raw[1] which is not correct.
Hiya,...
I noticed when trying to get the page ID, I was getting an array out of bounds exception after using the 'sendme' command. The response from nextion when you issue this command is:
0x66 0xff 0xff 0xff
After stripping the Response code (0x66) raw[] is left as simply the pageID. The _command function tries to access raw[1] which is not correct.