Seithan / EasyNextionLibrary

A simple library for Nextion display that uses only four functions. You can easily benefit from Nextion's wide range of features and advantages in just a few easy steps. The library uses a custom protocol that can prove to be a powerful tool for advanced users as it can be easily modified to meet one’s needs.
MIT License
116 stars 29 forks source link

#T on triger Serial.println #41

Closed puhycz closed 2 years ago

puhycz commented 2 years ago

Hello,

I Use Easy Nextion Library@^1.0.6, baud 115200. Send data to display works ok, but receive (by press button on disple f.e.) not works.

For example in triger0 I have Serial.println("button pressed"), but in terminal from ESP32 print this:

image

Next messages from terminal ESP32 are ok, but all from triggers it print only #T .

I dont know why. Plese help me.

Many thaks,

Jan

Seithan commented 2 years ago

Try this

void trigger2(){
myNex.writeStr("t0.txt", "P"); //(t0.txt in in same page)
}

Serial.println is not a member of the library