OneWireThermometerDevice Class
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.
Represents a 1-wire thermometer device.
public class OneWireThermometerDevice : Iot.Device.OneWire.OneWireDevice
type OneWireThermometerDevice = class
inherit OneWireDevice
Public Class OneWireThermometerDevice
Inherits OneWireDevice
- Inheritance
Constructors
OneWireThermometerDevice(String, String) |
Initializes a new instance of the OneWireThermometerDevice class. |
Properties
BusId |
The bus where this device is attached. (Inherited from OneWireDevice) |
DeviceId |
The 1-wire id of this device. (Inherited from OneWireDevice) |
Family |
The device family id of this device. (Inherited from OneWireDevice) |
Methods
EnumerateDevices() |
Enumerate all devices in system of type thermometer. |
IsCompatible(DeviceFamily) |
Check if family is compatible with this type of devices. |
IsCompatible(String, String) |
Check if device is compatible with this family of devices. |
ReadTemperature() |
Reads the current temperature of the device. Expect this function to be slow (about one second). |
ReadTemperatureAsync() |
Reads the current temperature of the device. Expect this function to be slow (about one second). |
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