Expand documentation of 'qos' configuration in mqtt_consumer input (#4784)

This commit is contained in:
Rodney Gitzel 2018-10-03 17:21:30 -07:00 committed by Daniel Nelson
parent 927cac0074
commit 9efe7c12f0
3 changed files with 25 additions and 3 deletions

View File

@ -3918,8 +3918,15 @@
# ## schema can be tcp, ssl, or ws.
# servers = ["tcp://localhost:1883"]
#
# ## MQTT QoS, must be 0, 1, or 2
# ## QoS policy for messages
# ## 0 = at most once
# ## 1 = at least once
# ## 2 = exactly once
# ##
# ## When using a QoS of 1 or 2, you should enable persistent_session to allow
# ## resuming unacknowledged messages.
# qos = 0
#
# ## Connection timeout for initial connection in seconds
# connection_timeout = "30s"
#

View File

@ -13,8 +13,16 @@ The plugin expects messages in the
## MQTT broker URLs to be used. The format should be scheme://host:port,
## schema can be tcp, ssl, or ws.
servers = ["tcp://localhost:1883"]
## MQTT QoS, must be 0, 1, or 2
## QoS policy for messages
## 0 = at most once
## 1 = at least once
## 2 = exactly once
##
## When using a QoS of 1 or 2, you should enable persistent_session to allow
## resuming unacknowledged messages.
qos = 0
## Connection timeout for initial connection in seconds
connection_timeout = "30s"

View File

@ -53,8 +53,15 @@ var sampleConfig = `
## schema can be tcp, ssl, or ws.
servers = ["tcp://localhost:1883"]
## MQTT QoS, must be 0, 1, or 2
## QoS policy for messages
## 0 = at most once
## 1 = at least once
## 2 = exactly once
##
## When using a QoS of 1 or 2, you should enable persistent_session to allow
## resuming unacknowledged messages.
qos = 0
## Connection timeout for initial connection in seconds
connection_timeout = "30s"