private void SafelySend(string msg) { try { port.SendData(msg); timer.Start(); if (LogEvent != null) { LogEvent(this, new LogEventArgs(LogLineType.INFO, string.Format(">> {0}", msg))); } } catch (Exception ex) { if (LogEvent != null) { LogEvent(this, new LogEventArgs(LogLineType.ERROR, ex)); } } }
public void SendRawCommand(string command) { port.SendData(command); }