DHT sensor library
Classes | Public Member Functions | List of all members
DHT_Unified Class Reference

Class that stores state and functions for interacting with DHT_Unified. More...

#include <DHT_U.h>

Classes

class  Humidity
 Class that stores state and functions about Humidity. More...
 
class  Temperature
 Class that stores state and functions about Temperature. More...
 

Public Member Functions

 DHT_Unified (uint8_t pin, uint8_t type, uint8_t count=6, int32_t tempSensorId=-1, int32_t humiditySensorId=-1)
 Instantiates a new DHT_Unified class. More...
 
void begin ()
 Setup sensor (calls begin on It)
 
Temperature temperature ()
 Returns temperature stored in _temp. More...
 
Humidity humidity ()
 Returns humidity stored in _humidity. More...
 

Detailed Description

Class that stores state and functions for interacting with DHT_Unified.

Constructor & Destructor Documentation

◆ DHT_Unified()

DHT_Unified::DHT_Unified ( uint8_t  pin,
uint8_t  type,
uint8_t  count = 6,
int32_t  tempSensorId = -1,
int32_t  humiditySensorId = -1 
)

Instantiates a new DHT_Unified class.

Parameters
pinpin number that sensor is connected
typetype of sensor
countnumber of sensors
tempSensorIdtemperature sensor id
humiditySensorIdhumidity sensor id

Member Function Documentation

◆ temperature()

Temperature DHT_Unified::temperature ( )
inline

Returns temperature stored in _temp.

Returns
Temperature value

◆ humidity()

Humidity DHT_Unified::humidity ( )
inline

Returns humidity stored in _humidity.

Returns
Humidity value

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