Last active
May 30, 2023 09:07
-
-
Save jgadjetx/bf69a187ddf7e5e568a1a531e747f994 to your computer and use it in GitHub Desktop.
MQTT MacOS setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mosquitto MQTT Broker Configuration | |
# Name of the configuration file | |
#pid_file /var/run/mosquitto/mosquitto.pid | |
# Select the log destination. "stderr" means errors will be sent to stderr and "syslog" means messages will be sent to the system logger. | |
log_dest stdout | |
# Choose the log types that are enabled. | |
# Possible types are: debug, error, warning, notice, information, subscribe, unsubscribe, websockets, all, none. | |
log_type all | |
# Allow anonymous clients to connect | |
allow_anonymous true | |
# Default listener | |
listener 1883 | |
# Set the protocol version for clients to use when connecting. | |
# Can take the values mqttv31 or mqttv5 to force a particular protocol version to be used. | |
# Use "auto" if either v3.1 or v5 clients should be accepted. | |
# protocol auto | |
/usr/local/etc/mosquitto/mosquitto.conf | |
/usr/local/opt/mosquitto/sbin/mosquitto -c /usr/local/etc/mosquitto/mosquitto.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment