comPort = new SerialPort(); comPort.DataReceived += new SerialDataReceivedEventHandler(comPort_DataReceived); //set the properties of our SerialPort Object comPort.BaudRate = int.Parse(_baudRate); comPort.DataBits = int.Parse(_dataBits); comPort.StopBits = (StopBits)Enum.Parse(typeof(StopBits), _stopBits); comPort.Parity = (Parity)Enum.Parse(typeof(Parity), _parity); comPort.PortName = _portName; comPort.Open();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)