75 lines
2.0 KiB
C
75 lines
2.0 KiB
C
#ifndef config_h
|
|
#define config_h
|
|
|
|
/**********************************
|
|
* Sketch configuration
|
|
*/
|
|
|
|
#define SKETCH_NAME "Gateway"
|
|
#define SKETCH_VERSION "1.1"
|
|
|
|
/**********************************
|
|
* MySensors node configuration
|
|
*/
|
|
|
|
|
|
|
|
#define MY_MSG_ACK 1
|
|
#define MY_MSG_RETRIES 3
|
|
#define MY_MSG_RETRY_DELAY 1
|
|
|
|
|
|
// Enable debug prints to serial monitor
|
|
//#define MY_DEBUG
|
|
//#define MY_DEBUG_VERBOSE_RF24
|
|
//#define MY_SPECIAL_DEBUG
|
|
#define MY_SPLASH_SCREEN_DISABLED
|
|
|
|
|
|
// Enable and select radio type attached
|
|
#define MY_RADIO_NRF24
|
|
|
|
#define MY_RF24_PA_LEVEL RF24_PA_MAX
|
|
#define MY_RF24_DATARATE RF24_250KBPS
|
|
#define MY_RF24_CHANNEL 82
|
|
#define MY_RF24_BASE_RADIO_ID 0x00,0x30,0x08,0x19,0x82
|
|
#define MY_RF24_ENABLE_XTEA
|
|
#define MY_RF24_XTEA_KEY { 0xF0, 0xE1, 0xD2, 0xC3, 0xB4, 0xA5, 0x96, 0x87, 0x78, 0x69, 0x5A, 0x4B, 0x3C, 0x2D, 0x1E, 0x0F }
|
|
#define MY_MESSAGE_ENABLE_NONCE
|
|
#define MY_MESSAGE_ENABLE_HASH
|
|
|
|
|
|
// Enable serial gateway
|
|
#define MY_GATEWAY_SERIAL
|
|
#define MY_BAUD_RATE 115200
|
|
|
|
|
|
|
|
/***********************************
|
|
* NodeManager configuration
|
|
*/
|
|
|
|
#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 0
|
|
// if enabled, will load the battery manager library to allow the battery level to be reported automatically or on demand
|
|
#define BATTERY_MANAGER 0
|
|
// if enabled, allow modifying the configuration remotely by interacting with the configuration child id
|
|
#define REMOTE_CONFIGURATION 0
|
|
// if enabled, persist the remote configuration settings on EEPROM
|
|
#define PERSIST 0
|
|
// 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 0
|
|
// if enabled, send a SLEEPING and AWAKE service messages just before entering and just after leaving a sleep cycle and STARTED when starting/rebooting
|
|
#define SERVICE_MESSAGES 0
|
|
|
|
#define MODULE_BMP280 1
|
|
#define MODULE_DHT 1
|
|
#define MODULE_ADS1115 1
|
|
|
|
#define DISABLE_SLEEP_MODE
|
|
|
|
#endif
|
|
|