From 0ea20bed439d27af6a5117e4023af9d0a6e5fad4 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Mon, 10 Aug 2020 16:43:23 +0800 Subject: [PATCH] MQTT: add configurable msg expired timeout --- components/mqtt/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/mqtt/Kconfig b/components/mqtt/Kconfig index e0d5f318b5..fc38978793 100644 --- a/components/mqtt/Kconfig +++ b/components/mqtt/Kconfig @@ -115,4 +115,11 @@ menu "ESP-MQTT Configurations" Set to true if a specific implementation of message outbox is needed (e.g. persistant outbox in NVM or similar). + config MQTT_OUTBOX_EXPIRED_TIMEOUT_MS + int "Outbox message expired timeout[ms]" + default 300000 + depends on MQTT_USE_CUSTOM_CONFIG + help + Messages which stays in the outbox longer than this value before being published will be discarded. + endmenu