Closed zsoltmazlo closed 1 year ago
Hi @zsoltmazlo
If device would send anything, then you'd see that in DEBUG - received
messages.
OK, sorry, It's absolutely my bad.
What I did is I changed the run method in the App class, where I made a while cycle periodically updating some texts in the screen. The problem was I used time.sleep
for waiting, because "for now it's OK", but because of that, the other tasks/co-routines were not executed at all.
Hey there!
I'm using your example code with my Nextion NX4024T032_011R, and sending data to the device works fine. It seems that the connection works properly:
However, when I click on a button, the
event_handler
method is not executed at all. This button would change the page, so the 'Send Component ID' checkbox is ticked and also asendme
instruction is issued when the page is initialized.The device sends back both information, I tried with the Nextion Editor application:![image](https://user-images.githubusercontent.com/6101832/195917430-a0750671-4405-4534-8362-89ae23b2dca9.png)
I'm not sure what am I missing. Tested both on Linux and Windows.
Python 3.10, package versions:![image](https://user-images.githubusercontent.com/6101832/195918237-dbe24e5a-e77f-46b2-90bc-8526fb1af1da.png)