c# - Capture one line of Serial Data from SerialPort Class -


I have a serial connection that gives me several lines of continuous text. I just use the SerialPort method in C # I want to capture one of those lines. How do I capture only one line of output from a serial port? I know all COM port / baud rate / bit rate / parity settings

Use serialPort.ReadLine (). If needed, please tweak Newline and encoding properties.


Comments