示例#1
0
文件: Receiver.cs 项目: mszubart/UCLA
        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");
 }