Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HP206C mbed HMC5883L DHT DS1820
Diff: T_H_air.cpp
- Revision:
- 29:e050039204ab
- Parent:
- 20:ee252c87a24d
- Child:
- 40:0b19a258c614
--- a/T_H_air.cpp Tue Sep 25 13:52:57 2018 +0000 +++ b/T_H_air.cpp Tue Sep 25 15:08:15 2018 +0000 @@ -1,1 +1,13 @@ -#include "T_H_air.h" \ No newline at end of file +#include "T_H_air.h" + +DHT sensor(PinName, DHTtype); + +float airHumidity(){ + int err = 0; + + err = sensor.readData(); + if( !err ){ + return sensor.ReadHumidity() ; + } + return EXIT_FAILURE ; + } \ No newline at end of file