Subscribe
Subscribe and buffer MQTT messages
Subscribe
Subscribe and buffer MQTT messages
yaml
type: "io.kestra.plugin.mqtt.Subscribe"Examples
yaml
id: mqtt_subscribe
namespace: company.team
tasks:
- id: subscribe
type: io.kestra.plugin.mqtt.Subscribe
server: tcp://localhost:1883
clientId: kestraProducer
qos: 1
maxDuration: 30s
topic:
- kestra/sensors/cpu
- kestra/sensors/mem
serdeType: JSON
maxRecords: 10
yaml
id: mqtt_subscribe
namespace: company.team
tasks:
- id: subscribe
type: io.kestra.plugin.mqtt.Subscribe
server: ssl://localhost:8883
clientId: kestraProducer
qos: 2
maxDuration: 1m
topic:
- kestra/sensors/cpu
- kestra/sensors/mem
crt: /home/path/to/ca.crt
serdeType: JSON
maxRecords: 10
Properties
clientId *Requiredstring
server *Requiredstring
topic *Requiredobject
authMethod string
connectionTimeout string
crt string
httpsHostnameVerificationEnabled booleanstring
maxDuration string
maxRecords integerstring
mqttVersion string
Default
V5Possible Values
V3V5password string
qos integerstring
Default
1serdeType string
Default
JSONPossible Values
STRINGJSONBYTESusername string
Outputs
messagesCount integer
uri string
Format
uri