PySerial

[Python] – Monitorar Porta Serial

from serial import *
porta = raw_input("Informe a porta a ser monitorada: ")
serial = Serial(port=porta, baudrate=9600)

while True:

print serial.readline()

Anúncios