Broker to enable MQTT protocol communication. Using the open-source eclipse server.
The setup can be done with or without docker. Using it is recommended to avoid environment-related errors. After launching the broker, it will be available on port 1883.
Using Docker and Docker-compose.
- Clone the repository and enter its directory
- Run
docker-compose up
to power on the message broker. The flag-d
can be specified to omit logs and run the task in the background.
- Install mosquitto server:
sudo apt-get install mosquitto
- Launch the broker specifying the config file,
mosquitto -c config/mosquitto.conf