public void StartMonitoring(string port, string baudRate, IntPtr handle = default(IntPtr)) { if (ActivePort == null) { return; } _activePort.PortDataReceived += ActivePort_PortDataReceived; ActivePort.StartListenning(port, baudRate); LogMessageValue?.Invoke("Monitoring Started Successfully!"); }
public void StartMonitoring(string port, string baudRate, IntPtr handle = default(IntPtr)) { if (ActivePort == null) { return; } _activePort.PortDataReceived += ActivePort_PortDataReceived; LogObjectValue?.Invoke("ActivePort", ActivePort); LogStringValue?.Invoke("Port", port); LogStringValue?.Invoke("BaudRate", baudRate); _activePort.LogObjectValue += delegate(string title, object value) { LogObjectValue?.Invoke(title, value); }; ActivePort.StartListenning(port, baudRate); LogMessageValue?.Invoke("Monitoring Started Successfully!"); }