SerialPort sp = new SerialPort(); sp.PortName = "COM4"; sp.BaudRate = 9600; sp.Parity = Parity.None; sp.DataBits = 8; sp.StopBits = StopBits.One; sp.Handshake = Handshake.RequestToSend; sp.Open();
"The given port name does not start with COM/com or does not resolve to a valid serial port.Parameter name: portName"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)