upm
0.3.1
Sensor/Actuator repository for libmraa (v0.7.2)
|
API for th02 temperature & humidity sensor library. More...
This file defines the TH02 interface for libth02
NOTE: For use on the Edison with the Arduino breakout board, the Edison must be set to 3v rather than 5v.
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 | ) |
Get the temperature value from sensor.
float getHumidity | ( | void | ) |
Get the humidity value from sensor.
bool getStatus | ( | ) |
Get the sensor's status.
|
inline |
Return name of the component