示例#1
0
 public Provision(Serial connection)
 {
     _recvBuffer = new Queue<byte[]>();
     _serial = connection;
     _serial.DataRead += ReceiveData;
 }
示例#2
0
 private void ReceiveData(object sender, Serial.SerialReadEventArgs e)
 {
     _recvBuffer.Enqueue(e.ReadBytes);
 }