Event handler in python serial port data received -


I was trying to write a code, every time a data was received in the serial port, an event was called. I'm using pyserial but I'm not getting a code that works.

I have found that people are like

 for  correct: inputb = ord (ser.read (1)) 'rest of code'  

But I'm looking for a way to add an event when a byte is read from a framework like a data frame () or similar function when triggering the event when valid data will be removed

Thank you for your help.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -