Skip to content

Commit dfd99de

Browse files
author
Paulus Schoutsen
committed
Add Ubuntu 14.04 Mosquitto instructions
1 parent e3a8e56 commit dfd99de

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

source/_components/mqtt.markdown

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ mqtt:
2626
username: USERNAME
2727
password: PASSWORD
2828
certificate: /home/paulus/dev/addtrustexternalcaroot.crt
29+
protocol: 3.1
2930
```
3031
3132
Configuration variables:
@@ -37,6 +38,7 @@ Configuration variables:
3738
- **username** (*Optional*): The username to use with your MQTT broker.
3839
- **password** (*Optional*): The corresponding password for the username to use with your MQTT broker.
3940
- **certificate** (*Optional*): Certificate to use to encrypt communication with the broker.
41+
- **protocol** (*Optional*): Protocol to use: 3.1 or 3.1.1. By default it connects with 3.1.1 and falls back to 3.1 if server does not support 3.1.
4042
4143
## {% linkable_title Picking a broker %}
4244
@@ -57,6 +59,10 @@ mqtt:
5759
password: PASSWORD
5860
```
5961
62+
<p class='note warning'>
63+
There is an issue with the Mosquitto package included in Ubuntu 14.04 LTS. Specify `protocol: 3.1` in your MQTT configuration to work around this issue.
64+
</p>
65+
6066
#### {% linkable_title Public MQTT %}
6167

6268
The Mosquitto project runs a [public broker](http://test.mosquitto.org). Easiest to setup but there is 0 privacy as all messages are public. Use this only for testing purposes and not for real tracking of your devices.
@@ -66,7 +72,7 @@ mqtt:
6672
broker: test.mosquitto.org
6773
port: 1883
6874
69-
# Optional, if you want encryption
75+
# Optional, replace port 1883 with following if you want encryption
7076
# (doesn't really matter because broker is public)
7177
port: 8883
7278
# Download certificate from http://test.mosquitto.org/ssl/mosquitto.org.crt

0 commit comments

Comments
 (0)