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
117 stars 30 forks source link

Check if is display connected #55

Closed puhycz closed 1 year ago

puhycz commented 1 year ago

Please how can i test if the display is connected? I need use ESP32 with connected or disconnected HMI display and with same firmware.

Thanks.

Seithan commented 1 year ago

You can build a watchdog. On Nextion use a timmer and every 5sec send a trigger command to mcu from mcu set a timer to zero every time you receive the command, and check if the timer exceed the 5sec that means that the display is disconnected