Bme680.TryReadHumidity Method
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
TryReadHumidity(Ratio) |
Reads the humidity. A return value indicates whether the reading succeeded. |
TryReadHumidity(RelativeHumidity) |
Reads the humidity. A return value indicates whether the reading succeeded. |
TryReadHumidity(Ratio)
Reads the humidity. A return value indicates whether the reading succeeded.
public bool TryReadHumidity (out UnitsNet.Ratio humidity);
member this.TryReadHumidity : Ratio -> bool
Public Function TryReadHumidity (ByRef humidity As Ratio) As Boolean
Parameters
- humidity
- UnitsNet.Ratio
Contains the measured humidity as %rH if the HumiditySampling was not set to Skipped. Contains NaN otherwise.
Returns
true
if measurement was not skipped, otherwise false
.
Applies to
TryReadHumidity(RelativeHumidity)
Reads the humidity. A return value indicates whether the reading succeeded.
public bool TryReadHumidity (out UnitsNet.RelativeHumidity humidity);
[System.Device.Model.Telemetry("Humidity", null)]
public bool TryReadHumidity (out UnitsNet.RelativeHumidity humidity);
member this.TryReadHumidity : RelativeHumidity -> bool
[<System.Device.Model.Telemetry("Humidity", null)>]
member this.TryReadHumidity : RelativeHumidity -> bool
Public Function TryReadHumidity (ByRef humidity As RelativeHumidity) As Boolean
Parameters
- humidity
- UnitsNet.RelativeHumidity
Contains the measured humidity as %rH if the HumiditySampling was not set to Skipped. Contains NaN otherwise.
Returns
true
if measurement was not skipped, otherwise false
.
- Attributes
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