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