Oct-30-2017, 03:59 AM
Hello,
I have installed PySerial and have been playing with its capabilities. I am somewhat new all around to Python as well as PySerial. I am looking to see if I can write a routine that would allow the Python script to wait until a specific message is displayed across the serial port? For instance, if I wanted to do print('Hello') every time the word Geoffrey came across the serial port? I think I might start with a while statement, but beyond that I am puzzled as to how to get the system to wait for an event that matches the criteria.
Thanks!
I have installed PySerial and have been playing with its capabilities. I am somewhat new all around to Python as well as PySerial. I am looking to see if I can write a routine that would allow the Python script to wait until a specific message is displayed across the serial port? For instance, if I wanted to do print('Hello') every time the word Geoffrey came across the serial port? I think I might start with a while statement, but beyond that I am puzzled as to how to get the system to wait for an event that matches the criteria.
Thanks!