Edit

Share via


Mhz19b Constructors

Definition

Overloads

Mhz19b(String)

Initializes a new instance of the Mhz19b class and creates a new serial port stream.

Mhz19b(Stream, Boolean)

Initializes a new instance of the Mhz19b class using an existing (serial port) stream.

Mhz19b(String)

Initializes a new instance of the Mhz19b class and creates a new serial port stream.

public Mhz19b (string uartDevice);
new Iot.Device.Mhz19b.Mhz19b : string -> Iot.Device.Mhz19b.Mhz19b
Public Sub New (uartDevice As String)

Parameters

uartDevice
String

Path to the UART device / serial port, e.g. /dev/serial0

Exceptions

uartDevice is null or empty

Applies to

Mhz19b(Stream, Boolean)

Initializes a new instance of the Mhz19b class using an existing (serial port) stream.

public Mhz19b (System.IO.Stream stream, bool shouldDispose);
new Iot.Device.Mhz19b.Mhz19b : System.IO.Stream * bool -> Iot.Device.Mhz19b.Mhz19b
Public Sub New (stream As Stream, shouldDispose As Boolean)

Parameters

stream
Stream

Existing stream

shouldDispose
Boolean

If true, the stream gets disposed when disposing the binding

Applies to