An eddied version of http://mbed.org/users/crazystick/code/DHT22/ for LPC11U24. All printf statements are removed and features requiring the real time clock are removed.

Dependents:   RHT03_HelloWorld IOT_sensor_nfc CanSat_Alex cansat_alex_v1 ... more

Embed: (wiki syntax)

« Back to documentation index

RHT03 Class Reference

RHT03 Class Reference

RHT03 interface class for reading data from the sensor. More...

#include <RHT03.h>

Public Member Functions

 RHT03 (PinName Data)
 Configure data pin.
RHT03_ERROR readData (void)
 Reads data from the RHT03.
float getHumidity ()
 Gives current humidity value.
float getTemperatureC ()
 Gives current temperature value.

Detailed Description

RHT03 interface class for reading data from the sensor.

Definition at line 44 of file RHT03.h.


Constructor & Destructor Documentation

RHT03 ( PinName  Data )

Configure data pin.

Parameters:
DataThe data pin the RHT03 is attached to

Definition at line 39 of file RHT03.cpp.


Member Function Documentation

float getHumidity (  )

Gives current humidity value.

Returns:
humidity value

Definition at line 219 of file RHT03.cpp.

float getTemperatureC (  )

Gives current temperature value.

Returns:
temperature value

Definition at line 215 of file RHT03.cpp.

RHT03_ERROR readData ( void   )

Reads data from the RHT03.

Returns:
error type or successful read

Definition at line 50 of file RHT03.cpp.