找回密码
 立即注册

微信扫码登录

搜索
查看: 240|回复: 1

[技术探讨] mqtt一直掉线再不断重连,请教大神指点。

[复制链接]

4

主题

102

回帖

805

积分

高级会员

积分
805
金钱
699
HASS币
0
发表于 2025-10-9 22:52:35 | 显示全部楼层 |阅读模式
之前用树莓派老版本haos,就很正常

换到最新版本haos,6.5.2版本的mqtt后,日志显示一直重新连接,很不稳定,贴一段日志,请教大神!!!折腾我一天了

2025-10-09 22:49:53: Client DVES_14FD12 has exceeded timeout, disconnecting.
2025-10-09 22:49:53: Client DVES_D57217 has exceeded timeout, disconnecting.
2025-10-09 22:49:53: Client DVES_DFB930 has exceeded timeout, disconnecting.
2025-10-09 22:49:56: New connection from 192.168.31.115:2522 on port 1883.
2025-10-09 22:49:56: New client connected from 192.168.31.115:2522 as DVES_DFB930 (p2, c1, k10, u'pi').
2025-10-09 22:49:57: New connection from 192.168.31.137:31176 on port 1883.
2025-10-09 22:49:57: New client connected from 192.168.31.137:31176 as DVES_412835 (p2, c1, k15, u'pi').
2025-10-09 22:49:58: Client DVES_734C54 has exceeded timeout, disconnecting.
2025-10-09 22:49:59: New connection from 192.168.31.136:30662 on port 1883.
2025-10-09 22:49:59: New client connected from 192.168.31.136:30662 as DVES_734C54 (p2, c1, k15, u'pi').
2025-10-09 22:50:01: New connection from 192.168.31.138:15039 on port 1883.
2025-10-09 22:50:01: New client connected from 192.168.31.138:15039 as DVES_14FD12 (p2, c1, k15, u'pi').
我的配置也很简单,就一个用户名和密码
logins:
  - username: pi
    password: raspberry
require_certificate: false
certfile: fullchain.pem
keyfile: privkey.pem
customize:
  active: false
  folder: mosquitto
到底是哪的原因啊?ping设备,网络连接也很正常
回复

使用道具 举报

9

主题

196

回帖

976

积分

高级会员

积分
976
金钱
771
HASS币
0
发表于 2025-10-10 15:36:30 | 显示全部楼层
没遇到过。实在不行可以docker跑mqtt
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-10-19 13:51 , Processed in 0.052133 second(s), 9 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表