Code:
//for opening the port on a button click
if (serialPort3.IsOpen)
{
serialPort3.Close();
}
else
{
serialPort3.Open();
}
private void serialPort3_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
Control.CheckForIllegalCrossThreadCalls
Leave a comment: