diff --git a/ChangeLog.txt b/ChangeLog.txt index 2ed754ea..ebfe5153 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -121,6 +121,8 @@ Client features: - Add -c (clean session) to mosquitto_pub. - Add --retained-only to mosquitto_sub to exit after receiving all retained messages. +- Add -W to allow mosquitto_sub to stop processing incoming messages after a + timeout. - Connections now default to using MQTT v3.1.1. - Default to using port 8883 when using TLS. - mosquitto_sub doesn't continue to keep connecting if CONNACK tells it the diff --git a/man/mosquitto_sub.1.xml b/man/mosquitto_sub.1.xml index f0030e49..7d8da81b 100644 --- a/man/mosquitto_sub.1.xml +++ b/man/mosquitto_sub.1.xml @@ -50,6 +50,7 @@ unsub-topic protocol-version + message processing timeout socks-url @@ -528,6 +529,16 @@ Defaults to . + + + + Provide a timeout as an integer number of seconds. + mosquitto_sub will stop processing messages and + disconnect after this number of seconds has + passed. The timeout starts just after the client has + connected to the broker. + +