Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
3.6 KiB

6 years ago
  1. #pragma once
  2. //------------------------------------------------------------------------------
  3. // Do not change this file unless you know what you are doing
  4. // Configuration settings are in the general.h file
  5. //------------------------------------------------------------------------------
  6. #if defined(ASYNC_TCP_SSL_ENABLED) && SECURE_CLIENT == SECURE_CLIENT_NONE
  7. #undef SECURE_CLIENT
  8. #define SECURE_CLIENT SECURE_CLIENT_AXTLS
  9. #endif
  10. #if DEBUG_TELNET_SUPPORT
  11. #undef TELNET_SUPPORT
  12. #define TELNET_SUPPORT 1
  13. #endif
  14. #if not WEB_SUPPORT
  15. #undef DEBUG_WEB_SUPPORT
  16. #define DEBUG_WEB_SUPPORT 0
  17. #endif
  18. #if not WEB_SUPPORT
  19. #undef API_SUPPORT
  20. #define API_SUPPORT 0 // API support requires web support
  21. #endif
  22. #if not WEB_SUPPORT
  23. #undef SSDP_SUPPORT
  24. #define SSDP_SUPPORT 0 // SSDP support requires web support
  25. #endif
  26. #if UART_MQTT_SUPPORT
  27. #define MQTT_SUPPORT 1
  28. #undef TERMINAL_SUPPORT
  29. #define TERMINAL_SUPPORT 0
  30. #undef DEBUG_SERIAL_SUPPORT
  31. #define DEBUG_SERIAL_SUPPORT 0
  32. #endif
  33. #if ALEXA_SUPPORT
  34. #undef BROKER_SUPPORT
  35. #define BROKER_SUPPORT 1 // If Alexa enabled enable BROKER
  36. #endif
  37. #if RPN_RULES_SUPPORT
  38. #undef BROKER_SUPPORT
  39. #define BROKER_SUPPORT 1 // If RPN Rules enabled enable BROKER
  40. #undef WEB_SUPPORT
  41. #define WEB_SUPPORT 1
  42. #undef MQTT_SUPPORT
  43. #define MQTT_SUPPORT 1
  44. #endif
  45. #if INFLUXDB_SUPPORT
  46. #undef BROKER_SUPPORT
  47. #define BROKER_SUPPORT 1 // If InfluxDB enabled enable BROKER
  48. #endif
  49. #if DOMOTICZ_SUPPORT
  50. #undef MQTT_SUPPORT
  51. #define MQTT_SUPPORT 1 // If Domoticz enabled enable MQTT
  52. #undef BROKER_SUPPORT
  53. #define BROKER_SUPPORT 1 // If Domoticz enabled enable BROKER
  54. #endif
  55. #if HOMEASSISTANT_SUPPORT
  56. #undef MQTT_SUPPORT
  57. #define MQTT_SUPPORT 1 // If Home Assistant enabled enable MQTT
  58. #endif
  59. #if SECURE_CLIENT != SECURE_CLIENT_AXTLS
  60. #if THINGSPEAK_USE_SSL && THINGSPEAK_USE_ASYNC
  61. #undef THINGSPEAK_SUPPORT
  62. #define THINGSPEAK_SUPPORT 0 // Thingspeak in ASYNC mode requires SECURE_CLIENT_AXTLS
  63. #endif
  64. #endif
  65. #if THINGSPEAK_SUPPORT
  66. #undef BROKER_SUPPORT
  67. #define BROKER_SUPPORT 1 // If Thingspeak enabled enable BROKER
  68. #endif
  69. #if SCHEDULER_SUPPORT
  70. #undef NTP_SUPPORT
  71. #define NTP_SUPPORT 1 // Scheduler needs NTP
  72. #endif
  73. #if LWIP_VERSION_MAJOR != 1
  74. #undef MDNS_CLIENT_SUPPORT
  75. #define MDNS_CLIENT_SUPPORT 0 // default resolver already handles this
  76. #endif
  77. #if not defined(ARDUINO_ESP8266_RELEASE_2_3_0)
  78. #undef TELNET_SERVER_ASYNC_BUFFERED
  79. #define TELNET_SERVER_ASYNC_BUFFERED 1 // enable buffered telnet by default on latest Cores
  80. #endif
  81. #if LLMNR_SUPPORT && defined(ARDUINO_ESP8266_RELEASE_2_3_0)
  82. #undef LLMNR_SUPPORT
  83. #define LLMNR_SUPPORT 0
  84. #endif
  85. #if NETBIOS_SUPPORT && defined(ARDUINO_ESP8266_RELEASE_2_3_0)
  86. #undef NETBIOS_SUPPORT
  87. #define NETBIOS_SUPPORT 0
  88. #endif
  89. #if SSDP_SUPPORT && defined(ARDUINO_ESP8266_RELEASE_2_3_0)
  90. #undef SSDP_SUPPORT
  91. #define SSDP_SUPPORT 0
  92. #endif
  93. #if LIGHT_PROVIDER == LIGHT_PROVIDER_TUYA
  94. #undef TUYA_SUPPORT
  95. #define TUYA_SUPPORT 1 // Need base Tuya module for this to work
  96. #undef LIGHT_USE_TRANSITIONS
  97. #define LIGHT_USE_TRANSITIONS 0 // TODO: temporary, maybe slower step instead?
  98. #endif
  99. #if TUYA_SUPPORT
  100. #undef BROKER_SUPPORT
  101. #define BROKER_SUPPORT 1 // Broker is required to process relay & lights events
  102. #endif