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