projet capteur connecté ST/SE

Dependencies:   HP206C mbed HMC5883L DHT DS1820

Files at this revision

API Documentation at this revision

Comitter:
SBACCARI
Date:
Tue Oct 09 12:32:59 2018 +0000
Parent:
63:769a0a65f5c7
Child:
65:3f898ad77cb5
Child:
68:26938422fa0c
Commit message:
correction bug;

Changed in this revision

T_H_air.cpp Show annotated file Show diff for this revision Revisions of this file
T_H_air.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/T_H_air.cpp	Tue Oct 09 12:29:13 2018 +0000
+++ b/T_H_air.cpp	Tue Oct 09 12:32:59 2018 +0000
@@ -27,7 +27,7 @@
     return 0;
 }
 
-void get_T_H_air(int* T, int* H, DHT sensor)
+void get_T_H_air(float* T, float* H, DHT sensor)
 {
     int tmpH, tmpT ;
 
--- a/T_H_air.h	Tue Oct 09 12:29:13 2018 +0000
+++ b/T_H_air.h	Tue Oct 09 12:32:59 2018 +0000
@@ -25,4 +25,4 @@
 
 float airHumidity(DHT sensor);
 float airTemperature(DHT sensor);
-void get_T_H_air(int* T, int* H, DHT sensor);
\ No newline at end of file
+void get_T_H_air(float* T, float* H, DHT sensor);
\ No newline at end of file
--- a/main.cpp	Tue Oct 09 12:29:13 2018 +0000
+++ b/main.cpp	Tue Oct 09 12:32:59 2018 +0000
@@ -9,7 +9,7 @@
 Serial wisol(SERIAL_PORT);
 Serial pc(USBTX, USBRX);
 DHT sensor(PIN_NAME, DHTtype);
-HP20x_dev hp206c(HP20X_I2C_PORT);
+//HP20x_dev hp206c(HP20X_I2C_PORT);
 HMC5883L hmc5883(HMC5883_I2C_PORT);
 
 int main() {
@@ -35,9 +35,9 @@
         */
         
         //collect data
-        alt = readAltitude(&hp206c);
+        //alt = readAltitude(&hp206c);
         hmc5883.getXYZ(magXYZ);
-        get_T_H_air(&airT, &airH, sensor)
+        get_T_H_air(&airT, &airH, sensor);
         
         // Display
         pc.printf("\n=====| Data |=====\n");