Skip to content

Commit

Permalink
clarified usage of topic wildcard in examples/doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsar256 committed Sep 1, 2020
1 parent 0d8d9e3 commit a9e61fe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ The config file can look like this:
mqtt:
# The MQTT broker to connect to
server: tcp://127.0.0.1:1883
# The Topic path to subscripe to. Be aware that you have to specify the wildcard.
# The Topic path to subscribe to. Be aware that you have to specify the wildcard.
topic_path: v1/devices/me/+
# Optional: Regular expression to extract the device ID from the topic path. The default regular expression, assumes
# that the last "element" of the topic_path is the device id.
Expand Down
2 changes: 1 addition & 1 deletion config.yaml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mqtt:
# Optional: Username and Password for authenticating with the MQTT Server
# user: bob
# password: happylittleclouds
# The Topic path to subscripe to.
# The Topic path to subscribe to. Be aware that you have to specify the wildcard.
topic_path: v1/devices/me/+
# Optional: Regular expression to extract the device ID from the topic path. The default regular expression, assumes
# that the last "element" of the topic_path is the device id.
Expand Down
2 changes: 1 addition & 1 deletion examples/gosund_sp111.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mqtt:
# Optional: Username and Password for authenticating with the MQTT Server
# user: bob
# password: happylittleclouds
# The Topic path to subscripe to. Actually this will become `$topic_path/+`
# The Topic path to subscribe to. Be aware that you have to specify the wildcard.
topic_path: tele/+/SENSOR
# Optional: Regular expression to extract the device ID from the topic path. The default regular expression, assumes
# that the last "element" of the topic_path is the device id.
Expand Down
4 changes: 2 additions & 2 deletions hack/mqtt2prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ mqtt:
# Optional: Username and Password for authenticating with the MQTT Server
# user: bob
# password: happylittleclouds
# The Topic path to subscripe to. Actually this will become `$topic_path/+`
topic_path: v1/devices/me
# The Topic path to subscribe to. Be aware that you have to specify the wildcard.
topic_path: v1/devices/me/+
# The MQTT QoS level
qos: 0
cache:
Expand Down

0 comments on commit a9e61fe

Please sign in to comment.