Method | Description | |
---|---|---|
ListAvailablePorts ( ) : Task |
ListAvailablePorts - Use SerialDevice.GetDeviceSelector to enumerate all serial devices - Attaches the DeviceInformation to the ListBox source so that DeviceIds are displayed
|
|
SelectDevice ( |
comPortInput_Click: Action to take when 'Connect' button is clicked - Get the selected device index and use Id to create the SerialDevice object - Configure default settings for the serial port - Create the ReadCancellationTokenSource token - Start listening on the serial port input
|
|
SerialCommunicationModule ( ) : System |
Method | Description | |
---|---|---|
OnLineRead ( object sender, string e ) : void |
public SelectDevice ( |
||
device | ||
return | void |
public SerialCommunicationModule ( ) : System | ||
return | System |