# KFS Smart Farm - local Mosquitto broker (session 7) # Windows: "C:\Program Files\mosquitto\mosquitto.exe" -c mosquitto.conf -v # Create users: mosquitto_passwd -c passwd farmnode then mosquitto_passwd passwd dashboard # NOTE: Mosquitto does not allow comments at the end of a setting line. # Farm LAN only - the IoT router is isolated from the college network listener 1883 0.0.0.0 allow_anonymous false password_file passwd acl_file acl # Keep retained messages (node status, health) across restarts persistence true persistence_location ./data/ autosave_interval 60 log_type error log_type warning log_type notice connection_messages true # MQTT over WebSockets for browser dashboards (session 11, optional) listener 9001 protocol websockets