Nextion Editor/Debuger

Hi everyone I am wondering if anyone has tried to connect a Photon to the Nextion Editor/Debugger. I only have one display but many Photons. so I am trying to connect mine to the Nextion Editor/Debugger until I get the hardware back. I can connect my Photon to Putty on com3. But when I use the debugger it sees the Photon(or something) on com3 but when I press ‘Start’ nothing seems to happen.
Some code I have tried:
void setup()
{
Serial.begin(9600);
}

void loop()
{
int counter=0;
counter++;
Serial.print(“InsideTemp.val=”);
Serial.print(counter);
Serial.write(0xff);
Serial.write(0xff);
Serial.write(0xff);

Serial.print(“n0.val=”);
Serial.print(counter);
Serial.write(0xff);
Serial.write(0xff);
Serial.write(0xff);
delay(1000);
}

The Nextion Editor/Debugger expects a display and does some negotiation with it to check if the device on that port is a display.
If you want a Photon to act as a display, you’d need to mimic the behaviour of a display (client side).
The code you have there is host code.

Actually the Nextion Debugger takes the place of the Photon not the other way round.

1 Like

Thanks, that explains a lot . I was hoping that the mcu input would read the com3 like a keyboard.
Now waiting for hardware. . . . . . . . .