The documentation you are viewing is for Dapr v0.11 which is an older version of Dapr. For up-to-date documentation, see the latest version.
MQTT binding spec
Detailed documentation on the MQTT binding component
Setup Dapr component
apiVersion: dapr.io/v1alpha1 kind: Component metadata: name: <NAME> namespace: <NAMESPACE> spec: type: bindings.mqtt version: v1 metadata: - name: url value: mqtt[s]://[username][:password]@host.domain[:port] - name: topic value: topic1
urlis the MQTT broker url.
topicis the topic to listen on or send events to.
WarningThe above example uses secrets as plain strings. It is recommended to use a secret store for the secrets as described here.
Output Binding Supported Operations
- Bindings building block
- How-To: Trigger application with input binding
- How-To: Use bindings to interface with external resources
- Bindings API reference
Last modified April 2, 2021: Merge pull request #1368 from dapr/version-banner-v0.11 (affdf47)