
Subscribe
CertifiedSubscribe and buffer MQTT messages
Subscribe
Certified
Subscribe and buffer MQTT messages
yaml
type: io.kestra.plugin.mqtt.SubscribeExamples
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_ssl
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: "{{ secret('MQTT_CA_CERT') }}"
serdeType: JSON
maxRecords: 10
Properties
clientId *Requiredstring
server *Requiredstring
topic *RequiredNon-dynamicobject
authMethod string
connectionTimeout string
crt string
httpsHostnameVerificationEnabled booleanstring
maxDuration string
maxRecords integerstring
mqttVersion string
Default
V5Possible Values
V3V5password string
pluginDefaultsRef Non-dynamicstring
qos integerstring
Default
1serdeType string
Default
JSONPossible Values
STRINGJSONBYTESusername string
Outputs
messagesCount integer
uri string
Format
uri