private static void OnDataReceived(object sender, UDataReceivedArgs e) { Console.Write("\n"); foreach (byte b in e.Buffer) { Console.Write(String.Format("{0:d}\t", b)); } }
private static void OnData(object sender, UDataReceivedArgs data) { Console.Write("Attention: " + BitConverter.ToSingle(data.Buffer, 0) + "T: " + DateTime.UtcNow.ToString() + "\r"); }