Skip to content

Commit 7b55ed4

Browse files
committed
Mosquitto 2.x incompatible with default IOTstack old-menu config file
This is an attempt at proposing a PR to apply to the old-menu branch to implement the same changes as proposed for the master branch in [PR266](SensorsIot#266).
1 parent ffbccf2 commit 7b55ed4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.templates/mosquitto/mosquitto.conf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1+
# required by https://mosquitto.org/documentation/migrating-to-2-0/
2+
listener 1883
3+
14
persistence true
25
persistence_location /mosquitto/data/
36
#log_dest file /mosquitto/log/mosquitto.log
47
# To avoid flash wearing
58
log_dest stdout
69

7-
#Uncomment to enable passwords
10+
# To enable passwords:
11+
# 1. Uncomment "password_file"; and
12+
# 2. Change "allow_anonymous" to "false"
813
#password_file /mosquitto/pwfile/pwfile
9-
#allow_anonymous false
14+
allow_anonymous true
1015

1116
#Uncomment to enable filters
1217
#acl_file /mosquitto/config/filter.acl

0 commit comments

Comments
 (0)