I have a nextion display running that displays the data received via serial from the MCU.
I`ve enabled the sleep functionality and a wake up on touch.
Data is being sent to display every 10 seconds no matter if display is on or not.
My problem is that when user touches the display to wake it up, it goes back from sleep and the old values are being displayed until new ones are not sent via serial.
I want display to sent an event via serial on wake up back to MCU that would trigger the value update.
I`ve created an on touch event for entire display that sends data back to mcu via serial and initiates the data refresh but the problem is that event is fired when user touches the screen AFTER device is back online which does not meet my requirement.
I need somehting that will trigger this update exactly when device wakes up. having uses touch twice on the screen just to see a fresh data is not acceptable.
Anyone stumbled across the same problem ?
Maybe instead of putting device to sleep just try to dim it to 0 so it still receives the data ? Any ideas ?