From 9185f8f42c879fb56097d3c7df54a6c362fd6681 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Tue, 15 Dec 2020 15:48:08 +0100 Subject: [PATCH] MQTT: Add new config modes (outbox related, incremental id) --- components/mqtt/Kconfig | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/components/mqtt/Kconfig b/components/mqtt/Kconfig index 7ce41d9bee..3fc4ee6602 100644 --- a/components/mqtt/Kconfig +++ b/components/mqtt/Kconfig @@ -26,6 +26,30 @@ menu "ESP-MQTT Configurations" 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