Difference between revisions of "MQTT: mosquitto.conf"

From OnnoWiki
Jump to navigation Jump to search
Line 26: Line 26:
 
  allow_anonymous true
 
  allow_anonymous true
 
  password_file /etc/mosquitto/passwd
 
  password_file /etc/mosquitto/passwd
 
+
# PENTING!
 
+
bind_interface bond0
  
 
==Option 3==
 
==Option 3==

Revision as of 05:35, 8 April 2022

Option 1

pid_file /run/mosquitto/mosquitto.pid
allow_anonymous true
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
# PENTING!
bind_interface bond0

Option 2

persistence true
persistence_location /var/lib/mosquitto/
persistence_file mosquitto.db
log_dest syslog
log_dest stdout
log_dest topic
log_type error
log_type warning
log_type notice
log_type information
connection_messages true
log_timestamp true
allow_anonymous true
password_file /etc/mosquitto/passwd
# PENTING!
bind_interface bond0

Option 3

# Set the version of the MQTT protocol to use with for this bridge. Can be one
# of mqttv50, mqttv311 or mqttv31. Defaults to mqttv311.
# bridge_protocol_version mqttv311