If your mosquitto server won't start, run it in the foreground and it'll 
tell you what line is wrong...

mosquitto -c /etc/mosquitto/mosquitto.conf

This is a minimalist /etc/mosquitto/conf.d/myconfig.conf file that works on 
ubuntu

#-----------------------------------------------------------
### this is an anonymous listener on the usual port
#
# listener 1883
# allow_anonymous true
#
#-----------------------------------------------------------
### this is a simple username/password pair
#
# remember to make a password file entry for the user
#     mosquitto_passwd -c /etc/mosquitto/pwfile myuser
#     (and enter the mosquitto password for that user twice)
#
# to subscribe - remember to provide the user and pass you created
# ala:
#    mosquitto_sub -t mytopic -h myaddress -u myuser -P mypass
#
listener 1883
allow_anonymous false
password_file /etc/mosquitto/pwfile
#
#-----------------------------------------------------------

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/1417bdbe-4e1b-4452-916c-2aaa8668bcf0n%40googlegroups.com.

Reply via email to