Edit

Share via


Dht11 Class

Definition

Temperature and Humidity Sensor DHT11

public class Dht11 : Iot.Device.DHTxx.DhtBase
type Dht11 = class
    inherit DhtBase
Public Class Dht11
Inherits DhtBase
Inheritance
Dht11

Constructors

Dht11(Int32, PinNumberingScheme, GpioController, Boolean)

Create a DHT11 sensor

Dht11(Int32, PinNumberingScheme)

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)

Properties

Humidity
Obsolete.

Get the last read of relative humidity in percentage

(Inherited from DhtBase)
IsLastReadSuccessful
Obsolete.

How last read went, true for success, false for failure

(Inherited from DhtBase)
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)

Applies to