projet capteur connecté ST/SE
Dependencies: HP206C mbed HMC5883L DHT DS1820
T_H_air.cpp
- Committer:
- MathieuM
- Date:
- 2018-10-01
- Revision:
- 46:40b6bbf6167e
- Parent:
- 45:60f602ecd59b
- Child:
- 50:2cbcbc06ceb6
File content as of revision 46:40b6bbf6167e:
#include "T_H_air.h" #include "config.h" float airHumidity(DHT sensor){ DigitalOut warningAir(W_AIR); int err = 0; err = sensor.readData(); if( !err ){ return sensor.ReadHumidity() ; } warningAir = 1; return EXIT_FAILURE ; } float airTemperature(DHT sensor){ DigitalOut warningAir(W_AIR); int err = 0; err = sensor.readData(); if( !err ){ return sensor.ReadTemperature(CELCIUS) ; } warningAir = 1; return EXIT_FAILURE ; }