DHT22Gen3_RK
|
DHTSensorType object to decode DHT11 sensor data. More...
#include <DHT22Gen3_RK.h>
Public Member Functions | |
DHTSensorTypeDHT11 () | |
Constructor for DHT11 sensor type. More... | |
virtual float | getTempC (const DHTSample &sample) const |
For the sample, convert it into degrees C based on the sensor type. More... | |
virtual float | getHumidity (const DHTSample &sample) const |
For the sample, convert it into percent humidity (0-100) based on the sensor type. More... | |
Public Member Functions inherited from DHTSensorType | |
DHTSensorType (const char *name, unsigned long minSamplePeriodMs, unsigned long oneBitThreshold) | |
Constructor for a sensor type. More... | |
virtual | ~DHTSensorType () |
Destructor. | |
Additional Inherited Members | |
Data Fields inherited from DHTSensorType | |
const char * | name |
Short name of sensor. | |
unsigned long | minSamplePeriodMs |
Minimum period between samples. | |
int | oneBitThreshold |
Threshold in number of I2S bits for a 1-bit. | |
DHTSensorType object to decode DHT11 sensor data.
DHTSensorTypeDHT11::DHTSensorTypeDHT11 | ( | ) |
Constructor for DHT11 sensor type.
You normally don't need to instantiate one of these; there's one pre-allocated in DHT22Gen3::sensorTypeDHT11.
|
virtual |
For the sample, convert it into percent humidity (0-100) based on the sensor type.
sample | The sample data to convert |
Implements DHTSensorType.
|
virtual |
For the sample, convert it into degrees C based on the sensor type.
sample | The sample data to convert |
Implements DHTSensorType.