Пример #1
0
        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));
            }
        }
Пример #2
0
 private static void OnData(object sender, UDataReceivedArgs data)
 {
     Console.Write("Attention: " + BitConverter.ToSingle(data.Buffer, 0) + "T: " + DateTime.UtcNow.ToString() + "\r");
 }