MQTT: mosquitto.conf: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
 
Line 28: Line 28:
  # PENTING!
  # PENTING!
  bind_interface bond0
  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

Latest revision as of 22:35, 7 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