示例#1
0
 private void Serial_DataReceived(UartController sender, DataReceivedEventArgs e)
 {
     _dataIn = _simpleSerial.Deserialize();
     foreach (String str in _dataIn)
     {
         DataReceived?.Invoke(this, str, DateTime.Now);
     }
 }
示例#2
0
 private void _serial_DataReceived(object sender, SerialDataReceivedEventArgs e)
 {
     _dataIn = _serial.Deserialize();
     foreach (string t in _dataIn)
     {
         if (DataReceived != null)
         {
             DataReceived(this, t, DateTime.Now);
         }
     }
 }