Example #1
0
        public void ComDataReceived(Object sender, SerialDataReceivedEventArgs e)
        {
            int len = COMPort.BytesToRead;

            Byte[] readbuffer = new byte[len];
            COMPort.Read(readbuffer, 0, len);
            Rec.AppendText(BytesToString(readbuffer));
            //String Recei = COMPort.ReadExisting();
            //Rec.Text = Recei;
        }