NeoNextion icon indicating copy to clipboard operation
NeoNextion copied to clipboard

NextionPage::show() and INextionWidget::sendCommand

Open TobbeJ opened this issue 5 years ago • 1 comments

Can someone please enlighten me how NextionPage::show() could work give how INextionWidget::sendCommand works.

lets assume i want to make page with id 1 visible (currently at page 0) i call show() on the page with id 1, sendcommand compares this new pages id with current page and finds them to be different and then just does a return fals instead of doing something useful.

so it must be impossible to make NextionPage::show() do something useful. or?

TobbeJ avatar Sep 14 '19 18:09 TobbeJ

Hello!

I can't find, where sendCommand compare the page ID. Instead:

  • NextionPage::show() builds the command string and calls sendCommand() (inherited from INextionWidget).
  • INextionWidget::sendCommand() calls sendCommand() of the attached Nextion-object
  • Nextion::sendCommand() writes the command string to the serial port, followed by 3 times 0xFF

anstahl73 avatar Sep 27 '19 07:09 anstahl73