changement de pin et durée extinction ESP

This commit is contained in:
habsinn 2021-11-30 16:48:13 +01:00
parent 70e5ca43ad
commit e1180bef4e
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@
#define CLUSTER "grappe1" #define CLUSTER "grappe1"
#define SENSORS_NUMBER 5 #define SENSORS_NUMBER 5
#define DHT22 22 #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 US_TO_S_FACTOR 1000000 //1000000 => 1 mesure par 10 min
#define R2 100 #define R2 100
#define R3 10 #define R3 10

View file

@ -5,7 +5,7 @@
using namespace std; 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 temp[SENSORS_NUMBER];
float hum[SENSORS_NUMBER]; float hum[SENSORS_NUMBER];