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.

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