From b59f86dbe99c517d1563183114099d538bd843f7 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 3 May 2017 23:04:10 +0200 Subject: [PATCH] Update mosquitto.markdown --- source/_addons/mosquitto.markdown | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/source/_addons/mosquitto.markdown b/source/_addons/mosquitto.markdown index 95acc8c8727..a041f1fcc6d 100644 --- a/source/_addons/mosquitto.markdown +++ b/source/_addons/mosquitto.markdown @@ -9,4 +9,22 @@ sharing: true footer: true --- -[Placeholder] \ No newline at end of file +Setup a [mosquitto](https://mosquitto.org/) mqtt broker. + +```json +{ + "plain": true, + "ssl": false, + "anonymous": true, + "logins": [ + {"username": "testuser", "password": "mypw"} + ] +} +``` + +Configuration variables: + +- **plain** (*Optional*): default true. Listen broaker on port 1883 without SSL/TLS. +- **ssl** (*Optional*): default false. Listen broker on port 8883 with SSL/TLS. Need to have certificates. +- **anonymous** (*Optional*): default true. Allow anonymous connection. If *logins* is set, anonymous user can only read data. +- **logins** (*Optional*): default empty. A list of user that will be create with *username* and *password*.