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

Implementation of the HumiditySensor interface for the Sensirion SHT85 sensor. More...

#include <SHTHumiditySensor.h>

Public Member Functions

 SHTHumiditySensor (SHTSensor *sht)
 
double getHumidity () const
 
double getTemperature () const
 
void begin ()
 
void readSample ()
 

Private Attributes

SHTSensor & sht
 
double t = NAN
 
double h = NAN
 

Detailed Description

Implementation of the HumiditySensor interface for the Sensirion SHT85 sensor.

Definition at line 9 of file SHTHumiditySensor.h.

Constructor & Destructor Documentation

◆ SHTHumiditySensor()

SHTHumiditySensor::SHTHumiditySensor ( SHTSensor * sht)
explicit

Definition at line 3 of file SHTHumiditySensor.cpp.

Member Function Documentation

◆ begin()

void SHTHumiditySensor::begin ( )

Definition at line 13 of file SHTHumiditySensor.cpp.

◆ getHumidity()

double SHTHumiditySensor::getHumidity ( ) const

Definition at line 5 of file SHTHumiditySensor.cpp.

◆ getTemperature()

double SHTHumiditySensor::getTemperature ( ) const

Definition at line 9 of file SHTHumiditySensor.cpp.

◆ readSample()

void SHTHumiditySensor::readSample ( )

Definition at line 18 of file SHTHumiditySensor.cpp.

Member Data Documentation

◆ h

double SHTHumiditySensor::h = NAN
private

Definition at line 13 of file SHTHumiditySensor.h.

◆ sht

SHTSensor& SHTHumiditySensor::sht
private

Definition at line 11 of file SHTHumiditySensor.h.

◆ t

double SHTHumiditySensor::t = NAN
private

Definition at line 13 of file SHTHumiditySensor.h.


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