Pyserial never read
francois.schnell at gmail.com
francois.schnell at gmail.com
Fri Feb 17 18:36:54 EST 2006
Hello,
I'm not sure I understand precisely your question but maybe you can try
a readline and a flushinput like that:
import serial
port= 0 # or the port where you're device is connected
baudrate=9600 # or the baudrate of your device
s = serial.Serial(port, baudrate) # Open the port
for i in range(100):
s.flushInput()
line= s.readline()
print line
More information about the Python-list
mailing list