Kconfig 4.8 KB

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