|
Nol.A SDK Library 26.11.2
For IoT System Software Development
|
#include <SHTSensor.hpp>
Public Member Functions | |
| virtual | ~SHTSensorDriver ()=0 |
| Virtual destructor for concrete sensor drivers. | |
| virtual bool | setAccuracy (SHTSensor::SHTAccuracy) |
| virtual bool | readSample () |
| float | getHumidity () const |
| float | getTemperature () const |
Public Attributes | |
| float | mTemperature |
| Cached temperature in degrees Celsius. | |
| float | mHumidity |
| Cached relative humidity in percent. | |
Abstract class for a digital SHT Sensor driver
|
inline |
Get the relative humidity in percent read from the last sample Use readSample() to trigger a new sensor reading
|
inline |
Get the temperature in degrees Celsius read from the last sample Use readSample() to trigger a new sensor reading
|
virtual |
Returns true if the next sample was read and the values are cached
Reimplemented in SHTI2cSensor.
|
inlinevirtual |
Set the sensor accuracy. Returns false if the sensor does not support changing the accuracy