Code: Select all
from System.IO.Ports import SerialPort
port = SerialPort("COM3", 115200)
def update():
for text in genericCom.ReadExistingString():
diagnostics.watch(text)
if starting:
genericCom.update+= update
Code: Select all
from System.IO.Ports import SerialPort
port = SerialPort("COM3", 115200)
def update():
for text in genericCom.ReadExistingString():
diagnostics.watch(text)
if starting:
genericCom.update+= update
Code: Select all
from System.IO.Ports import SerialPort
port = SerialPort("COM3", 115200)
Code: Select all
ReadLine()
def update():
text = genericCom.readExistingString():
diagnostics.watch(text)
Code: Select all
genericCom.ReadLine()
def update():
text = genericCom.ReadExistingString():
diagnostics.watch(text)
if starting:
genericCom.update+= update