SerialConnection.Device
From Xojo Documentation
Property (As SerialDevice )
aSerialConnection.Device = newSerialDeviceValue
or
SerialDeviceValue = aSerialConnection.Device
Supported for all project types and targets.
or
SerialDeviceValue = aSerialConnection.Device
Supported for all project types and targets.
Used to identify the serial device to which the SerialConnection control will communicate.
Example
The code below is from Examples/Communication/Serial/Line State Change Tester: