--- layout: page title: "Mosquitto MQTT broker" description: "Fast and reliable MQTT broker." date: 2017-04-30 13:28 sidebar: true comments: false sharing: true footer: true --- Set up a [mosquitto](https://mosquitto.org/) MQTT broker. ```json { "plain": true, "ssl": false, "anonymous": true, "logins": [ {"username": "testuser", "password": "mypw"} ] } ``` Configuration variables: - **plain** (*Optional*): Listen to broker on port 1883 without SSL/TLS. Defaults to `true`. - **ssl** (*Optional*): Listen to broker on port 8883 with SSL/TLS. This requires certificates. Defaults to `false`. - **anonymous** (*Optional*): Allow anonymous connection. If *logins* is set, anonymous user can only read data. Defaults to `true`. - **logins** (*Optional*): A list of user that will be created with *username* and *password*.