This is actually a rather challenging task, requiring a background thread constantly listening to the serial port. You might find inspiration in this example: clientserial.py.
This is actually a rather challenging task, requiring a background thread constantly listening to the serial port. You might find inspiration in this example: clientserial.py.