Humidistat
Arduino firmware for a humidistat (humidity controller)
Loading...
Searching...
No Matches
DHTHumiditySensor Class Reference

Implementation of the HumiditySensor interface for the DHT22/AM2302 sensor. More...

#include <DHTHumiditySensor.h>

Public Member Functions

 DHTHumiditySensor (DHT *dht)
 
double getHumidity () const
 
double getTemperature () const
 
void begin ()
 
void readSample ()
 

Private Attributes

DHT & dht
 

Detailed Description

Implementation of the HumiditySensor interface for the DHT22/AM2302 sensor.

Definition at line 7 of file DHTHumiditySensor.h.

Constructor & Destructor Documentation

◆ DHTHumiditySensor()

DHTHumiditySensor::DHTHumiditySensor ( DHT * dht)
explicit

Definition at line 3 of file DHTHumiditySensor.cpp.

Member Function Documentation

◆ begin()

void DHTHumiditySensor::begin ( )

Definition at line 13 of file DHTHumiditySensor.cpp.

◆ getHumidity()

double DHTHumiditySensor::getHumidity ( ) const

Definition at line 5 of file DHTHumiditySensor.cpp.

◆ getTemperature()

double DHTHumiditySensor::getTemperature ( ) const

Definition at line 9 of file DHTHumiditySensor.cpp.

◆ readSample()

void DHTHumiditySensor::readSample ( )

Definition at line 17 of file DHTHumiditySensor.cpp.

Member Data Documentation

◆ dht

DHT& DHTHumiditySensor::dht
private

Definition at line 9 of file DHTHumiditySensor.h.


The documentation for this class was generated from the following files: