Publish
yaml
type: "io.kestra.plugin.mqtt.publish"
Examples
yaml
id: mqtt_publish
namespace: company.team
tasks:
- id: publish
type: io.kestra.plugin.mqtt.Publish
server: tcp://localhost:1883
clientId: kestraProducer
topic: kestra/sensors/cpu
serdeType: JSON
retain: true
from:
type: "sensors"
value: 1.23
yaml
id: mqtt_publish
namespace: company.team
tasks:
- id: publish
type: io.kestra.plugin.mqtt.Publish
server: ssl://localhost:8883
clientId: kestraProducer
topic: kestra/sensors/cpu
crt: /home/path/to/ca.crt
serdeType: JSON
retain: true
from:
type: "sensors"
value: 1.23
Properties
clientId *Requiredstring
from *Requiredstringarrayobject
serdeType *Requiredstring
Possible Values
STRING
JSON
BYTES
server *Requiredstring
topic *Requiredstring
authMethod string
connectionTimeout string
Format
duration
crt string
httpsHostnameVerificationEnabled booleanstring
mqttVersion string
Default
V5
Possible Values
V3
V5
password string
qos integerstring
Default
1
retain booleanstring
Default
false