config.h 2.74 KB
Newer Older
DV's avatar
DV committed
1
2
3
#ifndef config_h
#define config_h

DV's avatar
DV committed
4
5
6
7
8
/**********************************
 * Sketch configuration
 */

#define SKETCH_NAME "NodeManagerTemplate"
9
#define SKETCH_VERSION "1.3-dev"
DV's avatar
DV committed
10

DV's avatar
DV committed
11
12
13
/**********************************
 * MySensors configuration
 */
user2684's avatar
user2684 committed
14
#define MY_BAUD_RATE 9800
DV's avatar
DV committed
15
//#define MY_DEBUG
16
#define MY_NODE_ID 100
DV's avatar
DV committed
17

DV's avatar
DV committed
18
#define MY_RADIO_NRF24
19
#define MY_RF24_ENABLE_ENCRYPTION
DV's avatar
DV committed
20
//#define MY_RF24_CHANNEL 76
DV's avatar
DV committed
21
22
23
24
25
26

//#define MY_RADIO_RFM69
//#define MY_RFM69_FREQUENCY RF69_868MHZ
//#define MY_IS_RFM69HW
//#define MY_RFM69_ENABLE_ENCRYPTION
//#define MY_RFM69_NETWORKID 100
DV's avatar
DV committed
27
28
29
30

/***********************************
 * NodeManager configuration
 */
DV's avatar
DV committed
31
32
33
34

// if enabled, enable debug messages on serial port
#define DEBUG 1

DV's avatar
DV committed
35
36
37
38
39
40
41
42
// if enabled, will load the sleep manager library. Sleep mode and sleep interval have to be configured to make the board sleeping/waiting
#define SLEEP_MANAGER 1
// if enabled, enable the capability to power on sensors with the arduino's pins to save battery while sleeping
#define POWER_MANAGER 1
// if enabled, will load the battery manager library to allow the battery level to be reported automatically or on demand
#define BATTERY_MANAGER 1
// if enabled, allow modifying the configuration remotely by interacting with the configuration child id
#define REMOTE_CONFIGURATION 1
DV's avatar
DV committed
43
// if enabled, persist the remote configuration settings on EEPROM
DV's avatar
DV committed
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#define PERSIST 0

// if enabled, send a SLEEPING and AWAKE service messages just before entering and just after leaving a sleep cycle
#define SERVICE_MESSAGES 1
// if enabled, a battery sensor will be created at BATTERY_CHILD_ID and will report vcc voltage together with the battery level percentage
#define BATTERY_SENSOR 1

// Enable this module to use one of the following sensors: SENSOR_ANALOG_INPUT, SENSOR_LDR, SENSOR_THERMISTOR
#define MODULE_ANALOG_INPUT 1
// Enable this module to use one of the following sensors: SENSOR_DIGITAL_INPUT
#define MODULE_DIGITAL_INPUT 1
// Enable this module to use one of the following sensors: SENSOR_DIGITAL_OUTPUT, SENSOR_RELAY, SENSOR_LATCHING_RELAY
#define MODULE_DIGITAL_OUTPUT 1
// Enable this module to use one of the following sensors: SENSOR_DHT11, SENSOR_DHT22
#define MODULE_DHT 0
DV's avatar
DV committed
59
60
// Enable this module to use one of the following sensors: SENSOR_SHT21
#define MODULE_SHT21 0
DV's avatar
DV committed
61
62
63
64
// Enable this module to use one of the following sensors: SENSOR_SWITCH, SENSOR_DOOR, SENSOR_MOTION
#define MODULE_SWITCH 0
// Enable this module to use one of the following sensors: SENSOR_DS18B20
#define MODULE_DS18B20 0
DV's avatar
DV committed
65
66
67
68
// Enable this module to use one of the following sensors: SENSOR_BH1750
#define MODULE_BH1750 0
// Enable this module to use one of the following sensors: SENSOR_MLX90614
#define MODULE_MLX90614 0
69
70
// Enable this module to use one of the following sensors: SENSOR_BME280
#define MODULE_BME280 0
DV's avatar
DV committed
71
72

#endif