Temp hum with nodemanger
This commit is contained in:
parent
8b38bf9d1b
commit
f5c1b5b368
|
|
@ -5,7 +5,7 @@
|
||||||
* Sketch configuration
|
* Sketch configuration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define SKETCH_NAME "NodeManager"
|
#define SKETCH_NAME "TempHum"
|
||||||
#define SKETCH_VERSION "1.0"
|
#define SKETCH_VERSION "1.0"
|
||||||
|
|
||||||
/**********************************
|
/**********************************
|
||||||
|
|
@ -87,7 +87,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// if enabled, enable debug messages on serial port
|
// 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
|
// if enabled, enable the capability to power on sensors with the arduino's pins to save battery while sleeping
|
||||||
#define POWER_MANAGER 1
|
#define POWER_MANAGER 1
|
||||||
|
|
|
||||||
|
|
@ -33,13 +33,13 @@ void before() {
|
||||||
/*
|
/*
|
||||||
* Register below your sensors
|
* Register below your sensors
|
||||||
*/
|
*/
|
||||||
nodeManager.setSleep(SLEEP,10,MINUTES);
|
nodeManager.setSleep(SLEEP,1,MINUTES);
|
||||||
nodeManager.setBatteryMin(1.8);
|
nodeManager.setBatteryMin(1.8);
|
||||||
nodeManager.setBatteryMax(2.4);
|
nodeManager.setBatteryMax(2.4);
|
||||||
nodeManager.setBatteryInternalVcc(true);
|
nodeManager.setBatteryInternalVcc(true);
|
||||||
nodeManager.setBatteryPin(A0);
|
nodeManager.setBatteryPin(A0);
|
||||||
|
|
||||||
nodeManager.registerSensor(SENSOR_DHT11, 3);
|
nodeManager.registerSensor(SENSOR_DHT22, 3);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Register above your sensors
|
* Register above your sensors
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue