|
|
@ -9,8 +9,8 @@ |
|
|
|
|
|
|
|
// Serial debug log |
|
|
|
|
|
|
|
#ifndef ENABLE_SERIAL_DEBUG |
|
|
|
#define ENABLE_SERIAL_DEBUG 1 // Enable serial debug log |
|
|
|
#ifndef DEBUG_SERIAL_SUPPORT |
|
|
|
#define DEBUG_SERIAL_SUPPORT 1 // Enable serial debug log |
|
|
|
#endif |
|
|
|
#ifndef DEBUG_PORT |
|
|
|
#define DEBUG_PORT Serial // Default debugging port |
|
|
@ -22,8 +22,8 @@ |
|
|
|
// To receive the message son the destination computer use nc: |
|
|
|
// nc -ul 8111 |
|
|
|
|
|
|
|
#ifndef ENABLE_UDP_DEBUG |
|
|
|
#define ENABLE_UDP_DEBUG 0 // Enable UDP debug log |
|
|
|
#ifndef DEBUG_UDP_SUPPORT |
|
|
|
#define DEBUG_UDP_SUPPORT 0 // Enable UDP debug log |
|
|
|
#endif |
|
|
|
#define DEBUG_UDP_IP IPAddress(192, 168, 1, 100) |
|
|
|
#define DEBUG_UDP_PORT 8113 |
|
|
@ -33,7 +33,7 @@ |
|
|
|
// General debug options and macros |
|
|
|
#define DEBUG_MESSAGE_MAX_LENGTH 80 |
|
|
|
|
|
|
|
#if (ENABLE_SERIAL_DEBUG==1) || (ENABLE_UDP_DEBUG==1) |
|
|
|
#if (DEBUG_SERIAL_SUPPORT==1) || (DEBUG_UDP_SUPPORT==1) |
|
|
|
#define DEBUG_MSG(...) debugSend(__VA_ARGS__) |
|
|
|
#define DEBUG_MSG_P(...) debugSend_P(__VA_ARGS__) |
|
|
|
#endif |
|
|
@ -47,8 +47,8 @@ |
|
|
|
// TERMINAL |
|
|
|
//------------------------------------------------------------------------------ |
|
|
|
|
|
|
|
#ifndef ENABLE_TERMINAL |
|
|
|
#define ENABLE_TERMINAL 1 // Enable terminal commands |
|
|
|
#ifndef TERMINAL_SUPPORT |
|
|
|
#define TERMINAL_SUPPORT 1 // Enable terminal commands |
|
|
|
#endif |
|
|
|
|
|
|
|
//------------------------------------------------------------------------------ |
|
|
@ -226,7 +226,7 @@ PROGMEM const char* const custom_reset_string[] = { |
|
|
|
#define WS_TIMEOUT 1800000 // Timeout for secured websocket |
|
|
|
#define WEBSERVER_PORT 80 // HTTP port |
|
|
|
#define DNS_PORT 53 // MDNS port |
|
|
|
#define ENABLE_MDNS 1 // Enable MDNS by default |
|
|
|
#define MDNS_SUPPORT 1 // Enable MDNS by default |
|
|
|
#define ENABLE_API 0 // Do not enable API by default |
|
|
|
#define API_BUFFER_SIZE 10 // Size of the buffer for HTTP GET API responses |
|
|
|
|
|
|
@ -245,8 +245,8 @@ PROGMEM const char* const custom_reset_string[] = { |
|
|
|
// ----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
// Do not add support for SPIFFS by default |
|
|
|
#ifndef ENABLE_SPIFFS |
|
|
|
#define ENABLE_SPIFFS 0 |
|
|
|
#ifndef SPIFFS_SUPPORT |
|
|
|
#define SPIFFS_SUPPORT 0 |
|
|
|
#endif |
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
@ -329,9 +329,10 @@ PROGMEM const char* const custom_reset_string[] = { |
|
|
|
// I2C |
|
|
|
// ----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
#ifndef ENABLE_I2C |
|
|
|
#define ENABLE_I2C 0 // I2C enabled |
|
|
|
#ifndef I2C_SUPPORT |
|
|
|
#define I2C_SUPPORT 0 // I2C enabled |
|
|
|
#endif |
|
|
|
|
|
|
|
#define I2C_SDA_PIN 4 // SDA GPIO |
|
|
|
#define I2C_SCL_PIN 14 // SCL GPIO |
|
|
|
#define I2C_CLOCK_STRETCH_TIME 200 // BRZO clock stretch time |
|
|
@ -368,9 +369,10 @@ PROGMEM const char* const custom_reset_string[] = { |
|
|
|
// DOMOTICZ |
|
|
|
// ----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
#ifndef ENABLE_DOMOTICZ |
|
|
|
#define ENABLE_DOMOTICZ 1 // Build with domoticz support |
|
|
|
#ifndef DOMOTICZ_SUPPORT |
|
|
|
#define DOMOTICZ_SUPPORT 1 // Build with domoticz support |
|
|
|
#endif |
|
|
|
|
|
|
|
#define DOMOTICZ_ENABLED 1 // Enable domoticz by default |
|
|
|
#define DOMOTICZ_IN_TOPIC "domoticz/in" // Default subscription topic |
|
|
|
#define DOMOTICZ_OUT_TOPIC "domoticz/out" // Default publication topic |
|
|
@ -379,9 +381,10 @@ PROGMEM const char* const custom_reset_string[] = { |
|
|
|
// INFLUXDB |
|
|
|
// ----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
#ifndef ENABLE_INFLUXDB |
|
|
|
#define ENABLE_INFLUXDB 1 // Enable InfluxDB support by default |
|
|
|
#ifndef INFLUXDB_SUPPORT |
|
|
|
#define INFLUXDB_SUPPORT 1 // Enable InfluxDB support by default |
|
|
|
#endif |
|
|
|
|
|
|
|
#define INFLUXDB_PORT 8086 // Default InfluxDB port |
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
@ -398,14 +401,14 @@ PROGMEM const char* const custom_reset_string[] = { |
|
|
|
// ----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
// This setting defines whether Alexa support should be built into the firmware |
|
|
|
#ifndef ENABLE_FAUXMO |
|
|
|
#define ENABLE_FAUXMO 1 |
|
|
|
#ifndef ALEXA_SUPPORT |
|
|
|
#define ALEXA_SUPPORT 1 |
|
|
|
#endif |
|
|
|
|
|
|
|
// This is default value for the fauxmoEnabled setting that defines whether |
|
|
|
// This is default value for the alexaEnabled setting that defines whether |
|
|
|
// this device should be discoberable and respond to Alexa commands. |
|
|
|
// Both ENABLE_FAUXMO and fauxmoEnabled should be 1 for Alexa support to work. |
|
|
|
#define FAUXMO_ENABLED 1 |
|
|
|
// Both ALEXA_SUPPORT and alexaEnabled should be 1 for Alexa support to work. |
|
|
|
#define ALEXA_ENABLED 1 |
|
|
|
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
|