MQTT
This code sample demonstrates how to consume data from an MQTT broker and publish that data to a Kafka topic.
How to run
Create a Quix account or log-in and visit the Samples to use this project.
Clicking Deploy
on the Sample, deploys a pre-built container in Quix. Complete the environment variables to configure the container.
Clicking Edit code
on the Sample, forks the project to your own Git repo so you can customize it before deploying.
Environment Variables
The code sample uses the following environment variables:
- output: Name of the output topic to publish to.
- mqtt_topic: The MQTT topic to listen to. Can use wildcards e.g. MyTopic/#
- mqtt_server: The address of your MQTT server.
- mqtt_port: The port of your MQTT server.
- mqtt_username: Username of your MQTT user.
- mqtt_password: Password for the MQTT user.
Requirements / Prerequisites
You'll need to have a MQTT broker either locally or in the cloud
Contribute
Submit forked projects to the Quix GitHub repo. Any new project that we accept will be attributed to you and you'll receive $200 in Quix credit.
Open source
This project is open source under the Apache 2.0 license and available in our GitHub repo.
Please star us and mention us on social to show your appreciation.