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

Active Directory Authenticated Proxy Server with Squid or CNTLM -

java - @PluginTarget(Node.class) not registering as neo4j plugin -

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