Kconfig 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. menu "ESP-MQTT Configurations"
  2. config MQTT_PROTOCOL_311
  3. bool "Enable MQTT protocol 3.1.1"
  4. default y
  5. help
  6. If not, this library will use MQTT protocol 3.1
  7. config MQTT_TRANSPORT_SSL
  8. bool "Enable MQTT over SSL"
  9. default y
  10. help
  11. Enable MQTT transport over SSL with mbedtls
  12. config MQTT_TRANSPORT_WEBSOCKET
  13. bool "Enable MQTT over Websocket"
  14. default y
  15. help
  16. Enable MQTT transport over Websocket.
  17. config MQTT_TRANSPORT_WEBSOCKET_SECURE
  18. bool "Enable MQTT over Websocket Secure"
  19. default y
  20. depends on MQTT_TRANSPORT_WEBSOCKET
  21. depends on MQTT_TRANSPORT_SSL
  22. help
  23. Enable MQTT transport over Websocket Secure.
  24. config MQTT_MSG_ID_INCREMENTAL
  25. bool "Use Incremental Message Id"
  26. default n
  27. help
  28. Set this to true for the message id (2.3.1 Packet Identifier) to be generated
  29. as an incremental number rather then a random value (used by default)
  30. config MQTT_SKIP_PUBLISH_IF_DISCONNECTED
  31. bool "Skip publish if disconnected"
  32. default n
  33. help
  34. Set this to true to avoid publishing (enqueueing messages) if the client is disconnected.
  35. The MQTT client tries to publish all messages by default, even in the disconnected state
  36. (where the qos1 and qos2 packets are stored in the internal outbox to be published later)
  37. The MQTT_SKIP_PUBLISH_IF_DISCONNECTED option allows applications to override this behaviour
  38. and not enqueue publish packets in the disconnected state.
  39. config MQTT_REPORT_DELETED_MESSAGES
  40. bool "Report deleted messages"
  41. default n
  42. help
  43. Set this to true to post events for all messages which were deleted from the outbox
  44. before being correctly sent and confirmed.
  45. config MQTT_USE_CUSTOM_CONFIG
  46. bool "MQTT Using custom configurations"
  47. default n
  48. help
  49. Custom MQTT configurations.
  50. config MQTT_TCP_DEFAULT_PORT
  51. int "Default MQTT over TCP port"
  52. default 1883
  53. depends on MQTT_USE_CUSTOM_CONFIG
  54. help
  55. Default MQTT over TCP port
  56. config MQTT_SSL_DEFAULT_PORT
  57. int "Default MQTT over SSL port"
  58. default 8883
  59. depends on MQTT_USE_CUSTOM_CONFIG
  60. depends on MQTT_TRANSPORT_SSL
  61. help
  62. Default MQTT over SSL port
  63. config MQTT_WS_DEFAULT_PORT
  64. int "Default MQTT over Websocket port"
  65. default 80
  66. depends on MQTT_USE_CUSTOM_CONFIG
  67. depends on MQTT_TRANSPORT_WEBSOCKET
  68. help
  69. Default MQTT over Websocket port
  70. config MQTT_WSS_DEFAULT_PORT
  71. int "Default MQTT over Websocket Secure port"
  72. default 443
  73. depends on MQTT_USE_CUSTOM_CONFIG
  74. depends on MQTT_TRANSPORT_WEBSOCKET
  75. depends on MQTT_TRANSPORT_WEBSOCKET_SECURE
  76. help
  77. Default MQTT over Websocket Secure port
  78. config MQTT_BUFFER_SIZE
  79. int "Default MQTT Buffer Size"
  80. default 1024
  81. depends on MQTT_USE_CUSTOM_CONFIG
  82. help
  83. This buffer size using for both transmit and receive
  84. config MQTT_TASK_STACK_SIZE
  85. int "MQTT task stack size"
  86. default 6144
  87. depends on MQTT_USE_CUSTOM_CONFIG
  88. help
  89. MQTT task stack size
  90. config MQTT_DISABLE_API_LOCKS
  91. bool "Disable API locks"
  92. default n
  93. depends on MQTT_USE_CUSTOM_CONFIG
  94. help
  95. Default config employs API locks to protect internal structures. It is possible to disable
  96. these locks if the user code doesn't access MQTT API from multiple concurrent tasks
  97. config MQTT_TASK_PRIORITY
  98. int "MQTT task priority"
  99. default 5
  100. depends on MQTT_USE_CUSTOM_CONFIG
  101. help
  102. MQTT task priority. Higher number denotes higher priority.
  103. config MQTT_TASK_CORE_SELECTION_ENABLED
  104. bool "Enable MQTT task core selection"
  105. default false
  106. help
  107. This will enable core selection
  108. choice MQTT_TASK_CORE_SELECTION
  109. depends on MQTT_TASK_CORE_SELECTION_ENABLED
  110. prompt "Core to use ?"
  111. config MQTT_USE_CORE_0
  112. bool "Core 0"
  113. config MQTT_USE_CORE_1
  114. bool "Core 1"
  115. endchoice
  116. config MQTT_CUSTOM_OUTBOX
  117. bool "Enable custom outbox implementation"
  118. default n
  119. help
  120. Set to true if a specific implementation of message outbox is needed (e.g. persistant outbox in NVM or
  121. similar).
  122. config MQTT_OUTBOX_EXPIRED_TIMEOUT_MS
  123. int "Outbox message expired timeout[ms]"
  124. default 30000
  125. depends on MQTT_USE_CUSTOM_CONFIG
  126. help
  127. Messages which stays in the outbox longer than this value before being published will be discarded.
  128. endmenu