upm  0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
Public Member Functions | List of all members

API for the TH02 Temperature & Humidity Sensor. More...

Detailed Description

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.

th02.jpg

Public Member Functions

synchronized void delete ()
 
 TH02 (int bus, short addr)
 
 TH02 (int bus)
 
float getTemperature ()
 
float getHumidity ()
 
boolean getStatus ()
 
String name ()
 

Constructor & Destructor Documentation

TH02 ( int  bus,
short  addr 
)

Instantiates a TH02 object

Member Function Documentation

float getHumidity ( )

Gets the humidity value from the sensor.

boolean getStatus ( )

Gets the sensor status.

float getTemperature ( )

Gets the temperature value from the sensor.

String name ( )

Returns the name of the component


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