reflow/serialmon.py

12 lines
170 B
Python
Raw Normal View History

2012-10-02 15:46:12 +00:00
#!/usr/bin/python
import serial
2012-10-03 00:29:05 +00:00
2012-10-02 15:46:12 +00:00
while 1:
2012-10-03 00:29:05 +00:00
try:
ser = serial.Serial('/dev/ttyUSB0', 9600)
while 1:
print ser.readline()
except Exception, e:
pass