diff --git a/temp_hum_sensor/src/config.h b/temp_hum_sensor/src/config.h index ffbdd90..6032b8e 100644 --- a/temp_hum_sensor/src/config.h +++ b/temp_hum_sensor/src/config.h @@ -5,7 +5,7 @@ * Sketch configuration */ -#define SKETCH_NAME "NodeManager" +#define SKETCH_NAME "TempHum" #define SKETCH_VERSION "1.0" /********************************** @@ -87,7 +87,7 @@ */ // if enabled, enable debug messages on serial port -#define DEBUG 1 +#define DEBUG 0 // if enabled, enable the capability to power on sensors with the arduino's pins to save battery while sleeping #define POWER_MANAGER 1 diff --git a/temp_hum_sensor/src/temp_hum_sensor.ino b/temp_hum_sensor/src/temp_hum_sensor.ino index 7ee288b..32e6f58 100644 --- a/temp_hum_sensor/src/temp_hum_sensor.ino +++ b/temp_hum_sensor/src/temp_hum_sensor.ino @@ -33,13 +33,13 @@ void before() { /* * Register below your sensors */ - nodeManager.setSleep(SLEEP,10,MINUTES); + nodeManager.setSleep(SLEEP,1,MINUTES); nodeManager.setBatteryMin(1.8); nodeManager.setBatteryMax(2.4); nodeManager.setBatteryInternalVcc(true); nodeManager.setBatteryPin(A0); - nodeManager.registerSensor(SENSOR_DHT11, 3); + nodeManager.registerSensor(SENSOR_DHT22, 3); /* * Register above your sensors