Pyserial never read
francois.schnell at gmail.com
francois.schnell at gmail.com
Fri Feb 17 18:36:54 EST 2006
More information about the Python-list mailing list
Fri Feb 17 18:36:54 EST 2006
- Previous message (by thread): Pyserial never read
- Next message (by thread): Pyserial never read
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): Pyserial never read
- Next message (by thread): Pyserial never read
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list