private void ListenerDataReceived(IList <byte> bytes, ICmdPartConfigAndBytes data)
        {
            var commandPartReceivedEvent = CommandPartReceived;

            commandPartReceivedEvent?.Invoke(this, new CommandPartReceivedEventArgs(data));

            foreach (var param in data.CmdPartConfig.VarParams)
            {
                try
                {
                    RaiseValueReceived(param.Id.IdentyString, param.GetValue(data.DataBytes, 0));
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex);
                }
            }
        }
Exemple #2
0
 public CommandPartReceivedEventArgs(ICmdPartConfigAndBytes data)
 {
     Data = data;
 }