void IOutputPort.Send(OperateCommandBase command) { if (this.port != null && this.port.IsOpen) { this.port.Write(command.CommandBytes, 0, command.CommandBytes.Length); } }
public void Send(OperateCommandBase command) { Debug.Print($"{DateTime.Now.ToString("hh:mm:ss.fff")}"); foreach (var item in command.CommandBytes) { Debug.Print(item.ToString()); } }