mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
4ec9d4bad6
* Update submodule: git log --oneline ae53d799da294f03ef65c33e88fa33648e638134..fde00340f19b9f5ae81fff02ccfa9926f0e33687 Detailed description of the changes: * Fix the default configuration for event queue - See merge request espressif/esp-mqtt!153 - See commit https://github.com/espressif/esp-mqtt/commit/fb42588 * Adds missing header. - See merge request espressif/esp-mqtt!152 - See commit https://github.com/espressif/esp-mqtt/commit/8a60057 * Moves state change when stopping the client - See merge request espressif/esp-mqtt!150 - Closes https://github.com/espressif/esp-mqtt/issues/239 - See commit https://github.com/espressif/esp-mqtt/commit/3738fcd * Adds error code to MQTT_EVENT_SUBSCRIBED in case of failure - See merge request espressif/esp-mqtt!143 - - Closes https://github.com/espressif/esp-mqtt/issues/233 - See commit https://github.com/espressif/esp-mqtt/commit/9af5c26 * Adds debug information on sending dup messages - See merge request espressif/esp-mqtt!145 - See commit https://github.com/espressif/esp-mqtt/commit/47b3f9b * ci: Fix qemu build - See merge request espressif/esp-mqtt!147 - See commit https://github.com/espressif/esp-mqtt/commit/68e8c4f * ci: Build and Test QEMU on v5.0 - See merge request espressif/esp-mqtt!142 - See commit https://github.com/espressif/esp-mqtt/commit/9db9ee7 * client: Add support for user events - See merge request espressif/esp-mqtt!140 - Closes https://github.com/espressif/esp-mqtt/issues/230 - See commit https://github.com/espressif/esp-mqtt/commit/97503cc * Adds unregister event API - See merge request espressif/esp-mqtt!139 - Closes https://github.com/espressif/esp-idf/issues/9194 - See commit https://github.com/espressif/esp-mqtt/commit/a9a9fe7
167 lines
5.5 KiB
Plaintext
167 lines
5.5 KiB
Plaintext
menu "ESP-MQTT Configurations"
|
|
|
|
config MQTT_PROTOCOL_311
|
|
bool "Enable MQTT protocol 3.1.1"
|
|
default y
|
|
help
|
|
If not, this library will use MQTT protocol 3.1
|
|
|
|
config MQTT_PROTOCOL_5
|
|
bool "Enable MQTT protocol 5.0"
|
|
default n
|
|
help
|
|
If not, this library will not support MQTT 5.0
|
|
|
|
config MQTT_TRANSPORT_SSL
|
|
bool "Enable MQTT over SSL"
|
|
default y
|
|
help
|
|
Enable MQTT transport over SSL with mbedtls
|
|
|
|
config MQTT_TRANSPORT_WEBSOCKET
|
|
bool "Enable MQTT over Websocket"
|
|
default y
|
|
depends on WS_TRANSPORT
|
|
help
|
|
Enable MQTT transport over Websocket.
|
|
|
|
config MQTT_TRANSPORT_WEBSOCKET_SECURE
|
|
bool "Enable MQTT over Websocket Secure"
|
|
default y
|
|
depends on MQTT_TRANSPORT_WEBSOCKET
|
|
depends on MQTT_TRANSPORT_SSL
|
|
help
|
|
Enable MQTT transport over Websocket Secure.
|
|
|
|
config MQTT_MSG_ID_INCREMENTAL
|
|
bool "Use Incremental Message Id"
|
|
default n
|
|
help
|
|
Set this to true for the message id (2.3.1 Packet Identifier) to be generated
|
|
as an incremental number rather then a random value (used by default)
|
|
|
|
config MQTT_SKIP_PUBLISH_IF_DISCONNECTED
|
|
bool "Skip publish if disconnected"
|
|
default n
|
|
help
|
|
Set this to true to avoid publishing (enqueueing messages) if the client is disconnected.
|
|
The MQTT client tries to publish all messages by default, even in the disconnected state
|
|
(where the qos1 and qos2 packets are stored in the internal outbox to be published later)
|
|
The MQTT_SKIP_PUBLISH_IF_DISCONNECTED option allows applications to override this behaviour
|
|
and not enqueue publish packets in the disconnected state.
|
|
|
|
config MQTT_REPORT_DELETED_MESSAGES
|
|
bool "Report deleted messages"
|
|
default n
|
|
help
|
|
Set this to true to post events for all messages which were deleted from the outbox
|
|
before being correctly sent and confirmed.
|
|
|
|
config MQTT_USE_CUSTOM_CONFIG
|
|
bool "MQTT Using custom configurations"
|
|
default n
|
|
help
|
|
Custom MQTT configurations.
|
|
|
|
config MQTT_TCP_DEFAULT_PORT
|
|
int "Default MQTT over TCP port"
|
|
default 1883
|
|
depends on MQTT_USE_CUSTOM_CONFIG
|
|
help
|
|
Default MQTT over TCP port
|
|
|
|
config MQTT_SSL_DEFAULT_PORT
|
|
int "Default MQTT over SSL port"
|
|
default 8883
|
|
depends on MQTT_USE_CUSTOM_CONFIG
|
|
depends on MQTT_TRANSPORT_SSL
|
|
help
|
|
Default MQTT over SSL port
|
|
|
|
config MQTT_WS_DEFAULT_PORT
|
|
int "Default MQTT over Websocket port"
|
|
default 80
|
|
depends on MQTT_USE_CUSTOM_CONFIG
|
|
depends on MQTT_TRANSPORT_WEBSOCKET
|
|
help
|
|
Default MQTT over Websocket port
|
|
|
|
config MQTT_WSS_DEFAULT_PORT
|
|
int "Default MQTT over Websocket Secure port"
|
|
default 443
|
|
depends on MQTT_USE_CUSTOM_CONFIG
|
|
depends on MQTT_TRANSPORT_WEBSOCKET
|
|
depends on MQTT_TRANSPORT_WEBSOCKET_SECURE
|
|
help
|
|
Default MQTT over Websocket Secure port
|
|
|
|
config MQTT_BUFFER_SIZE
|
|
int "Default MQTT Buffer Size"
|
|
default 1024
|
|
depends on MQTT_USE_CUSTOM_CONFIG
|
|
help
|
|
This buffer size using for both transmit and receive
|
|
|
|
config MQTT_TASK_STACK_SIZE
|
|
int "MQTT task stack size"
|
|
default 6144
|
|
depends on MQTT_USE_CUSTOM_CONFIG
|
|
help
|
|
MQTT task stack size
|
|
|
|
config MQTT_DISABLE_API_LOCKS
|
|
bool "Disable API locks"
|
|
default n
|
|
depends on MQTT_USE_CUSTOM_CONFIG
|
|
help
|
|
Default config employs API locks to protect internal structures. It is possible to disable
|
|
these locks if the user code doesn't access MQTT API from multiple concurrent tasks
|
|
|
|
config MQTT_TASK_PRIORITY
|
|
int "MQTT task priority"
|
|
default 5
|
|
depends on MQTT_USE_CUSTOM_CONFIG
|
|
help
|
|
MQTT task priority. Higher number denotes higher priority.
|
|
|
|
config MQTT_EVENT_QUEUE_SIZE
|
|
int "Number of queued events."
|
|
default 1
|
|
depends on MQTT_USE_CUSTOM_CONFIG
|
|
help
|
|
A value higher than 1 enables multiple queued events.
|
|
|
|
config MQTT_TASK_CORE_SELECTION_ENABLED
|
|
bool "Enable MQTT task core selection"
|
|
help
|
|
This will enable core selection
|
|
|
|
choice MQTT_TASK_CORE_SELECTION
|
|
depends on MQTT_TASK_CORE_SELECTION_ENABLED
|
|
prompt "Core to use ?"
|
|
config MQTT_USE_CORE_0
|
|
bool "Core 0"
|
|
config MQTT_USE_CORE_1
|
|
bool "Core 1"
|
|
endchoice
|
|
|
|
config MQTT_CUSTOM_OUTBOX
|
|
bool "Enable custom outbox implementation"
|
|
default n
|
|
help
|
|
Set to true if a specific implementation of message outbox is needed (e.g. persistent outbox in NVM or
|
|
similar).
|
|
Note: Implementation of the custom outbox must be added to the mqtt component. These CMake commands
|
|
could be used to append the custom implementation to lib-mqtt sources:
|
|
idf_component_get_property(mqtt mqtt COMPONENT_LIB)
|
|
set_property(TARGET ${mqtt} PROPERTY SOURCES ${PROJECT_DIR}/custom_outbox.c APPEND)
|
|
|
|
config MQTT_OUTBOX_EXPIRED_TIMEOUT_MS
|
|
int "Outbox message expired timeout[ms]"
|
|
default 30000
|
|
depends on MQTT_USE_CUSTOM_CONFIG
|
|
help
|
|
Messages which stays in the outbox longer than this value before being published will be discarded.
|
|
|
|
endmenu
|