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.

101 lines
2.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 DEBUG_TELNET_SUPPORT
  7. #undef TELNET_SUPPORT
  8. #define TELNET_SUPPORT 1
  9. #endif
  10. #if not WEB_SUPPORT
  11. #undef DEBUG_WEB_SUPPORT
  12. #define DEBUG_WEB_SUPPORT 0
  13. #endif
  14. #if not WEB_SUPPORT
  15. #undef SSDP_SUPPORT
  16. #define SSDP_SUPPORT 0 // SSDP support requires web support
  17. #endif
  18. #if UART_MQTT_SUPPORT
  19. #define MQTT_SUPPORT 1
  20. #undef TERMINAL_SUPPORT
  21. #define TERMINAL_SUPPORT 0
  22. #undef DEBUG_SERIAL_SUPPORT
  23. #define DEBUG_SERIAL_SUPPORT 0
  24. #endif
  25. #if DOMOTICZ_SUPPORT
  26. #undef MQTT_SUPPORT
  27. #define MQTT_SUPPORT 1 // If Domoticz enabled enable MQTT
  28. #endif
  29. #if HOMEASSISTANT_SUPPORT
  30. #undef MQTT_SUPPORT
  31. #define MQTT_SUPPORT 1 // If Home Assistant enabled enable MQTT
  32. #endif
  33. #ifndef ASYNC_TCP_SSL_ENABLED
  34. #if THINGSPEAK_USE_SSL && THINGSPEAK_USE_ASYNC
  35. #undef THINGSPEAK_SUPPORT // Thingspeak in ASYNC mode requires ASYNC_TCP_SSL_ENABLED
  36. #endif
  37. #endif
  38. #if SCHEDULER_SUPPORT
  39. #undef NTP_SUPPORT
  40. #define NTP_SUPPORT 1 // Scheduler needs NTP
  41. #endif
  42. // -----------------------------------------------------------------------------
  43. // WEB UI IMAGE
  44. // -----------------------------------------------------------------------------
  45. #define WEBUI_IMAGE_SMALL 0
  46. #define WEBUI_IMAGE_LIGHT 1
  47. #define WEBUI_IMAGE_SENSOR 2
  48. #define WEBUI_IMAGE_RFBRIDGE 4
  49. #define WEBUI_IMAGE_RFM69 8
  50. #define WEBUI_IMAGE_FULL 15
  51. #if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE
  52. #ifdef WEBUI_IMAGE
  53. #undef WEBUI_IMAGE
  54. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  55. #else
  56. #define WEBUI_IMAGE WEBUI_IMAGE_LIGHT
  57. #endif
  58. #endif
  59. #if SENSOR_SUPPORT == 1
  60. #ifndef WEBUI_IMAGE
  61. #define WEBUI_IMAGE WEBUI_IMAGE_SENSOR
  62. #else
  63. #undef WEBUI_IMAGE
  64. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  65. #endif
  66. #endif
  67. #if defined(ITEAD_SONOFF_RFBRIDGE)
  68. #ifndef WEBUI_IMAGE
  69. #define WEBUI_IMAGE WEBUI_IMAGE_RFBRIDGE
  70. #else
  71. #undef WEBUI_IMAGE
  72. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  73. #endif
  74. #endif
  75. #if RFM69_SUPPORT == 1
  76. #ifndef WEBUI_IMAGE
  77. #define WEBUI_IMAGE WEBUI_IMAGE_RFM69
  78. #else
  79. #undef WEBUI_IMAGE
  80. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  81. #endif
  82. #endif
  83. #ifndef WEBUI_IMAGE
  84. #define WEBUI_IMAGE WEBUI_IMAGE_SMALL
  85. #endif