Edit

Share via


NmeaParser(String, Stream, Stream) Constructor

Definition

Creates a new instance of the NmeaParser, taking an input and an output stream

public NmeaParser (string interfaceName, System.IO.Stream dataSource, System.IO.Stream? dataSink);
new Iot.Device.Nmea0183.NmeaParser : string * System.IO.Stream * System.IO.Stream -> Iot.Device.Nmea0183.NmeaParser
Public Sub New (interfaceName As String, dataSource As Stream, dataSink As Stream)

Parameters

interfaceName
String

Friendly name of this interface (used for filtering and eventually logging)

dataSource
Stream

Data source (may be connected to a serial port, a network interface, or whatever). It is recommended to use a blocking Stream, to prevent unnecessary polling

dataSink
Stream

Optional data sink, to send information. Can be null, and can be identical to the source stream

Applies to