#pragma once
|
|
|
|
//------------------------------------------------------------------------------
|
|
// Do not change this file unless you know what you are doing
|
|
// Configuration settings are in the general.h file
|
|
//------------------------------------------------------------------------------
|
|
|
|
#if DEBUG_TELNET_SUPPORT
|
|
#undef TELNET_SUPPORT
|
|
#define TELNET_SUPPORT 1
|
|
#endif
|
|
|
|
#if not WEB_SUPPORT
|
|
#undef DEBUG_WEB_SUPPORT
|
|
#define DEBUG_WEB_SUPPORT 0
|
|
#endif
|
|
|
|
#if not WEB_SUPPORT
|
|
#undef SSDP_SUPPORT
|
|
#define SSDP_SUPPORT 0 // SSDP support requires web support
|
|
#endif
|
|
|
|
#if UART_MQTT_SUPPORT
|
|
#define MQTT_SUPPORT 1
|
|
#undef TERMINAL_SUPPORT
|
|
#define TERMINAL_SUPPORT 0
|
|
#undef DEBUG_SERIAL_SUPPORT
|
|
#define DEBUG_SERIAL_SUPPORT 0
|
|
#endif
|
|
|
|
#if DOMOTICZ_SUPPORT
|
|
#undef MQTT_SUPPORT
|
|
#define MQTT_SUPPORT 1 // If Domoticz enabled enable MQTT
|
|
#endif
|
|
|
|
#if HOMEASSISTANT_SUPPORT
|
|
#undef MQTT_SUPPORT
|
|
#define MQTT_SUPPORT 1 // If Home Assistant enabled enable MQTT
|
|
#endif
|
|
|
|
#ifndef ASYNC_TCP_SSL_ENABLED
|
|
#if THINGSPEAK_USE_SSL && THINGSPEAK_USE_ASYNC
|
|
#undef THINGSPEAK_SUPPORT // Thingspeak in ASYNC mode requires ASYNC_TCP_SSL_ENABLED
|
|
#endif
|
|
#endif
|
|
|
|
#if SCHEDULER_SUPPORT
|
|
#undef NTP_SUPPORT
|
|
#define NTP_SUPPORT 1 // Scheduler needs NTP
|
|
#endif
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// Debug
|
|
// -----------------------------------------------------------------------------
|
|
|
|
#define DEBUG_SUPPORT DEBUG_SERIAL_SUPPORT || DEBUG_UDP_SUPPORT || DEBUG_TELNET_SUPPORT || DEBUG_WEB_SUPPORT
|
|
|
|
#if DEBUG_SUPPORT
|
|
#define DEBUG_MSG(...) debugSend(__VA_ARGS__)
|
|
#define DEBUG_MSG_P(...) debugSend_P(__VA_ARGS__)
|
|
#endif
|
|
|
|
#ifndef DEBUG_MSG
|
|
#define DEBUG_MSG(...)
|
|
#define DEBUG_MSG_P(...)
|
|
#endif
|