Mhz19b Constructors
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.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for