Jelajahi Sumber

MQTT: Restore default MQTT_OUTBOX_EXPIRED_TIMEOUT_MS to 30 sec

The OUTBOX_EXPIRED_TIMEOUT_MS was 30*1000 in original esp-mqtt code.
Don't change the default OUTBOX_EXPIRED_TIMEOUT_MS without good reason,
which may has impact on memory usage for existing applications.

Fixes: 0ea20bed439d ("MQTT: add configurable msg expired timeout")
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Axel Lin 5 tahun lalu
induk
melakukan
db276595cf
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      components/mqtt/Kconfig

+ 1 - 1
components/mqtt/Kconfig

@@ -117,7 +117,7 @@ menu "ESP-MQTT Configurations"
 
 
     config MQTT_OUTBOX_EXPIRED_TIMEOUT_MS
     config MQTT_OUTBOX_EXPIRED_TIMEOUT_MS
         int "Outbox message expired timeout[ms]"
         int "Outbox message expired timeout[ms]"
-        default 300000
+        default 30000
         depends on MQTT_USE_CUSTOM_CONFIG
         depends on MQTT_USE_CUSTOM_CONFIG
         help
         help
             Messages which stays in the outbox longer than this value before being published will be discarded.
             Messages which stays in the outbox longer than this value before being published will be discarded.