private void MessageReceived(object sender, SerialDeviceBase.MessageReceivedArgs messageReceivedArgs)
        {
            var m = Messager;

            if (m != null)
            {
                m.AddMessage(messageReceivedArgs.Data, false);
                m.AddMessage(messageReceivedArgs.Data, true);
            }
        }
Exemplo n.º 2
0
        private void ByteListener(object sender, SerialDeviceBase.MessageReceivedArgs args)
        {
            var e = recordedBytes;

            if (e != null)
            {
                foreach (var b in args.Data)
                {
                    e.Enqueue(b);
                }
            }
        }
 private void BasicListener(object sender, SerialDeviceBase.MessageReceivedArgs args)
 {
     Dispatch(() => Messager.AddMessage(args.Data, false));
 }