/// <summary> /// Send a BREAK. /// </summary> public void SendBreak() { if (_serialPort != null && _serialPort.IsAvailable()) { Task.Run(() => _serialPort.SendBreak()); } else { DisplayConnectionError(); } }
/// <summary> /// Send a BREAK and start pinging. /// </summary> private void StartPinging() { _adcpSerialPort.SendBreak(); // Wait for an output Thread.Sleep(RTI.AdcpSerialPort.WAIT_STATE * 4); _adcpSerialPort.StartPinging(); // Wait for an output Thread.Sleep(RTI.AdcpSerialPort.WAIT_STATE * 4); DispalyStatus("Start ADCP Pinging."); }