SensorHub.TryReadOffBoardTemperature(Temperature) Method
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.
Try to read the temperature from the off board thermometer.
C#
public bool TryReadOffBoardTemperature (out UnitsNet.Temperature temperature);
member this.TryReadOffBoardTemperature : Temperature -> bool
Public Function TryReadOffBoardTemperature (ByRef temperature As Temperature) As Boolean
- temperature
- UnitsNet.Temperature
The temperature if successful
True
on success, False
otherwise
Thrown when ext. temperature sensor not found.
Range is -30 to 127 Celsius.
Производ | Верзије |
---|---|
.NET IoT Libraries | 1.5.0, 2.0.0, 2.1.0, 2.2.0 |