Input: mqtt
Consume events from a MQTT topic
Field Summary
Field Name | Type | Description | Default |
---|---|---|---|
address | string | The IP address of the MQTT broker | - |
port | integer | The port of the MQTT broker | - |
filters | array of strings | The MQTT topic to publish to | - |
broker-mode | bool | Do not connect to an external MQTT server, instead run as a MQTT broker | false |
topic-as-field-name | bool | Use the topic as the name for the data-field | false |
topic-field | field | Field to store the topic name for received events | - |
data-field | field | Field to store the topic data for recevied events (as a string) | - |
qos | integer | The QOS level for topics (0,1,2) | 0 |
raw | bool | Do not quote with _raw (e.g. when data is already JSON) | false |
plain | bool | Just pass through the payload of the message | false |
Fields
address
Type: string
The IP address of the MQTT broker
port
Type: integer
The port of the MQTT broker
filters
Type: array of strings
The MQTT topic to publish to
broker-mode
Type: bool
Default: false
Do not connect to an external MQTT server, instead run as a MQTT broker
topic-as-field-name
Type: bool
Default: false
Use the topic as the name for the data-field
topic-field
Type: field
Field to store the topic name for received events
data-field
Type: field
Field to store the topic data for recevied events (as a string)
qos
Type: integer
Default: 0
Possible Values: 0, 1, 2
The QOS level for topics (0,1,2)
raw
Type: bool
Default: false
Do not quote with _raw (e.g. when data is already JSON)
plain
Type: bool
Default: false
Just pass through the payload of the message