MQTT经纪人 - 客户断开连接,而不是授权

发布于 2025-01-30 09:08:27 字数 570 浏览 3 评论 0原文

我在Ubuntu Linux机器上创建了一个蚊子经纪人。

当我从MQTT.FX软件连接时,看起来还不错,我能够连接。 但是,当我打开连接到代理的设备时,我会在代理日志文件上收到此消息:

> 1652968173: New connection from 84.110.147.52:22942 on port 1883.
> 1652968173: Sending CONNACK to M_B2:CC:4C:42:A6:FE (0, 5) 1652968173:
> Client M_B2:CC:4C:42:A6:FE disconnected, not authorised.

配置文件中包含此消息:

listener 1883
password_file /home/passwordfile.txt
log_dest file /home/mosquitto_logs.txt
log_type all

passwordfile.txt可以通过,因为我可以通过MQTT连接。 FX

知道什么可能是什么问题? 我可以分享更多相关信息吗? 谢谢

I created a mosquitto broker on an Ubuntu Linux machine.

when i'm connecting from MQTT.fx software, it looks ok, im able to connect.
but when i'm turning on a device that connect to the broker i'm getting this message on the broker log file :

> 1652968173: New connection from 84.110.147.52:22942 on port 1883.
> 1652968173: Sending CONNACK to M_B2:CC:4C:42:A6:FE (0, 5) 1652968173:
> Client M_B2:CC:4C:42:A6:FE disconnected, not authorised.

the configuration file has this in it:

listener 1883
password_file /home/passwordfile.txt
log_dest file /home/mosquitto_logs.txt
log_type all

the passwordfile.txt is ok since i'm able to connect via MQTT.fx

any idea what can be the issue?
is there more relevant information i can share?
Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文