C# Class Microsoft.Networking.SerialPort

Inheritance: IPort
Show file Open project: Dronacharya-Org/Dronacharya Class Usage Examples

Public Methods

Method Description
Close ( ) : void
Connect ( string portName, int baudRate ) : void
FindPorts ( ) : Task>
Read ( byte buffer, int bytesToRead ) : int
ToString ( ) : string
Write ( byte buffer, int count ) : void
Write ( string msg ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Connect() public method

public Connect ( string portName, int baudRate ) : void
portName string
baudRate int
return void

FindPorts() public static method

public static FindPorts ( ) : Task>
return Task>

Read() public method

public Read ( byte buffer, int bytesToRead ) : int
buffer byte
bytesToRead int
return int

ToString() public method

public ToString ( ) : string
return string

Write() public method

public Write ( byte buffer, int count ) : void
buffer byte
count int
return void

Write() public method

public Write ( string msg ) : void
msg string
return void