private void port_DataReceived(object sender, SerialDataReceivedEventArgs e) { byte[] buff = new byte[port.BytesToRead]; Console.WriteLine(port.BytesToRead); port.Read(buff, 0, buff.Length); SetText(buff); }
port.BytesToRead
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)