NmeaParser(String, Stream, Stream) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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