|
upm
0.4.0
Sensor/Actuator repository for libmraa (v0.8.0)
|
API for the TH02 Temperature & Humidity Sensor. More...
This module defines the TH02 interface for libth02
Note: For use on Intel(R) Edison with an Arduino* breakout board, Intel Edison must be set to 3 V rather than 5 V.
Public Member Functions | |
| TH02 (int bus=0, uint8_t addr=TH02_ADDR) | |
| ~TH02 () | |
| float | getTemperature () |
| float | getHumidity () |
| bool | getStatus () |
| std::string | name () |
| float getTemperature | ( | void | ) |
Gets the temperature value from the sensor.

| float getHumidity | ( | void | ) |
Gets the humidity value from the sensor.

| bool getStatus | ( | ) |
Gets the sensor status.

|
inline |
Returns the name of the component
1.8.9.1