mqtt password

This commit is contained in:
jeremygan2021
2025-11-16 18:20:08 +08:00
parent 6dc4d0699a
commit 5c36736141
5 changed files with 30 additions and 6 deletions

10
mosquitto.conf Normal file
View File

@@ -0,0 +1,10 @@
# Mosquitto配置文件
# 监听端口
listener 1883
# 允许匿名连接默认为true我们将设置为false以要求认证
allow_anonymous false
# 密码文件
password_file /mosquitto/config/passwd