Table of Contents

Class SerialReadLine

Namespace
Bonsai.IO.Ports
Assembly
Bonsai.System.dll

Represents an operator that reads lines of characters asynchronously from a serial port.

public class SerialReadLine : Source<string>
Inheritance
SerialReadLine
Inherited Members

Properties

NewLine

Gets or sets the new line separator used to delimit reads from the serial port.

public string NewLine { get; set; }

Property Value

string

PortName

Gets or sets the name of the serial port.

[TypeConverter(typeof(PortNameConverter))]
public string PortName { get; set; }

Property Value

string

Methods

Generate()

Reads a sequence of characters delimited by a new line separator from the serial port.

public override IObservable<string> Generate()

Returns

IObservable<string>

A sequence of string values representing each of the lines read from the serial port.

Generate<TSource>(IObservable<TSource>)

Reads a sequence of lines from a serial port, where each new line is read only when an observable sequence emits a notification.

public IObservable<string> Generate<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The sequence containing the notifications used for reading new lines from the serial port.

Returns

IObservable<string>

A sequence of string values representing each of the lines read from the serial port for each corresponding notification.

Type Parameters

TSource

The type of the elements in the source sequence.