From e1180bef4e914976c20b61b18ae28328e17ae2af Mon Sep 17 00:00:00 2001 From: habsinn Date: Tue, 30 Nov 2021 16:48:13 +0100 Subject: [PATCH] =?UTF-8?q?changement=20de=20pin=20et=20dur=C3=A9e=20extin?= =?UTF-8?q?ction=20ESP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/main.h | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/main.h b/include/main.h index e2622b4..cfab1bf 100644 --- a/include/main.h +++ b/include/main.h @@ -22,7 +22,7 @@ #define CLUSTER "grappe1" #define SENSORS_NUMBER 5 #define DHT22 22 -#define TIME_TO_SLEEP 598 +#define TIME_TO_SLEEP 3600 // l'ESp32 est rallumé à plein régime pour prendre une mesure toutes les 3600 secondes (soit 1 fois/heure) #define US_TO_S_FACTOR 1000000 //1000000 => 1 mesure par 10 min #define R2 100 #define R3 10 diff --git a/src/main.cpp b/src/main.cpp index 4dfd3b0..371f469 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5,7 +5,7 @@ using namespace std; -DHT sensors[SENSORS_NUMBER] = {DHT(23, DHT22), DHT(22, DHT22), DHT(21, DHT22), DHT(17, DHT22), DHT(2, DHT22)}; +DHT sensors[SENSORS_NUMBER] = {DHT(23, DHT22), DHT(22, DHT22), DHT(21, DHT22), DHT(17, DHT22), DHT(35, DHT22)}; float temp[SENSORS_NUMBER]; float hum[SENSORS_NUMBER];