Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
OnLineRead ( object sender, string e ) : void |
public SelectDevice ( |
||
device | ||
Результат | void |
public SerialCommunicationModule ( ) : System | ||
Результат | System |