public void AcceptFrame(MatrixRequest request) { switch (request.Command) { case 24: var hm = ServiceLocator.Current.GetInstance <HandlerManager>(); Session.ChangeState(hm.Get("alarm")); break; } //parse frame here logger.Debug("поступил пакет {0}", string.Join(",", request.Body.Select(b => b.ToString("X2")))); }
public void AcceptFrame(MatrixRequest request) { }
public void AcceptFrame(MatrixRequest request) { buffer.AddRange(request.Body); logger.Debug("к драйверу {0}", string.Join(",", buffer.Select(b => b.ToString("X2")))); }