Dht12 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.
Temperature and Humidity Sensor DHT12
public class Dht12 : Iot.Device.DHTxx.DhtBase
type Dht12 = class
inherit DhtBase
Public Class Dht12
Inherits DhtBase
- Inheritance
Constructors
Dht12(I2cDevice) |
Create a DHT12 sensor through I2C |
Dht12(Int32, PinNumberingScheme) | |
Dht12(Int32, PinNumberingScheme, GpioController, Boolean) |
Create a DHT12 sensor |
Fields
_controller |
GpioController related with the _pin. (Inherited from DhtBase) |
_i2cDevice |
I2C device used to communicate with the device (Inherited from DhtBase) |
_isLastReadSuccessful |
True when the last read values are valid (Inherited from DhtBase) |
_pin |
GPIO pin (Inherited from DhtBase) |
_readBuff |
Read buffer (Inherited from DhtBase) |
_shouldDispose |
True to dispose the Gpio Controller (Inherited from DhtBase) |
DefaultI2cAddress |
DHT12 Default I2C Address |
Properties
Humidity |
Obsolete.
Get the last read of relative humidity in percentage (Inherited from DhtBase) |
IsLastReadSuccessful |
Obsolete.
How last read went, |
MinTimeBetweenReads |
Gets or sets the minimum time between sensor reads. When querying the sensor faster than this, the last values will be returned (whether valid or not) (Inherited from DhtBase) |
Temperature |
Obsolete.
Get the last read temperature (Inherited from DhtBase) |
Methods
Dispose() | (Inherited from DhtBase) |
TryReadHumidity(RelativeHumidity) |
Returns the current relative humidity (Inherited from DhtBase) |
TryReadTemperature(Temperature) |
Returns the current temperature (Inherited from DhtBase) |