Skip to content

Commit

Permalink
chore: add more examples to config
Browse files Browse the repository at this point in the history
  • Loading branch information
kaans committed Dec 13, 2024
1 parent 23591b2 commit 5732180
Showing 1 changed file with 50 additions and 3 deletions.
53 changes: 50 additions & 3 deletions config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,57 @@ broker:

topics:
- topic: mqtli/test
subscription:
enabled: false
qos: 1
outputs:
- format:
type: yaml
- format:
type: json
- format:
type: text
- format:
type: hex
- format:
type: base64
- format:
type: raw
- format:
type: base64
target:
type: file
path: "log.txt"
overwrite: false
prepend: "MESSAGE: " # prepends the string "MESSAGE: " to the beginning of the base64 encoded message
append: "\n" # appends a new line to the end of the message
payload:
type: raw
publish:
enabled: false
input:
type: hex
content: AB23F6E983
trigger:
- type: periodic # default trigger: periodic with no count (indefinitely) and interval 1 second

- topic: mqtli/protobuf
subscription:
enabled: true
qos: 1
outputs:
- format:
type: yaml # target is console; protobuf message will be shown as yaml
type: yaml
- format:
type: json
- format:
type: text
- format:
type: hex
- format:
type: base64
- format:
type: raw
- format:
type: base64
target:
Expand All @@ -26,11 +71,13 @@ topics:
prepend: "MESSAGE: " # prepends the string "MESSAGE: " to the beginning of the base64 encoded message
append: "\n" # appends a new line to the end of the message
payload:
type: text
type: protobuf
definition: "test/data/message.proto"
message: "Response" # Response is the name of the protobuf message
publish:
enabled: true
input:
type: hex
content: AB23F6E983 # this must be a valid protobuf message according to the payload format (encoded as hex)
content: 082d12080a066b696e646f66180222024142 # this must be a valid protobuf message according to the payload format (encoded as hex)
trigger:
- type: periodic # default trigger: periodic with no count (indefinitely) and interval 1 second

0 comments on commit 5732180

Please sign in to comment.