You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- **username** (*Optional*): The username to use with your MQTT broker.
38
39
- **password** (*Optional*): The corresponding password for the username to use with your MQTT broker.
39
40
- **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.
40
42
41
43
## {% linkable_title Picking a broker %}
42
44
@@ -57,6 +59,10 @@ mqtt:
57
59
password: PASSWORD
58
60
```
59
61
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
+
60
66
#### {% linkable_title Public MQTT %}
61
67
62
68
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:
66
72
broker: test.mosquitto.org
67
73
port: 1883
68
74
69
-
# Optional, if you want encryption
75
+
# Optional, replace port 1883 with following if you want encryption
70
76
# (doesn't really matter because broker is public)
71
77
port: 8883
72
78
# Download certificate from http://test.mosquitto.org/ssl/mosquitto.org.crt
0 commit comments