Skip to content

Commit

Permalink
docs(inputs.mqtt_consumer): Clarify persistent session and topic refr…
Browse files Browse the repository at this point in the history
…esh (#14366)
  • Loading branch information
powersj authored and akash-rubrik committed Nov 30, 2023
1 parent 6fa6640 commit 9a851dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion plugins/inputs/mqtt_consumer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ to use them.
## In order for this option to work you must also set client_id to identify
## the client. To receive messages that arrived while the client is offline,
## also set the qos option to 1 or 2 and don't forget to also set the QoS when
## publishing.
## publishing. Finally, using a persistent session will use the initial
## connection topics and not subscribe to any new topics even after
## reconnecting or restarting without a change in client ID.
# persistent_session = false

## If unset, a random client ID will be generated.
Expand Down
4 changes: 3 additions & 1 deletion plugins/inputs/mqtt_consumer/sample.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
## In order for this option to work you must also set client_id to identify
## the client. To receive messages that arrived while the client is offline,
## also set the qos option to 1 or 2 and don't forget to also set the QoS when
## publishing.
## publishing. Finally, using a persistent session will use the initial
## connection topics and not subscribe to any new topics even after
## reconnecting or restarting without a change in client ID.
# persistent_session = false

## If unset, a random client ID will be generated.
Expand Down

0 comments on commit 9a851dc

Please sign in to comment.