SerialConnection.LineStateChanged
From Xojo Documentation
Event
SerialConnection.LineStateChanged(ChangedLines() as Integer)
New in 2019r2
Supported for all project types and targets.
New in 2019r2
Supported for all project types and targets.
When a line state changes, the LineStateChanged event occurs and passes an array of lines whose state has changed.