Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否定时检测mqtt状态,连接不正常就重连 #49

Open
vaakian opened this issue Oct 19, 2019 · 5 comments
Open

能否定时检测mqtt状态,连接不正常就重连 #49

vaakian opened this issue Oct 19, 2019 · 5 comments
Assignees

Comments

@vaakian
Copy link

vaakian commented Oct 19, 2019

  • 固件版本(必填):v1.0.2

  • 是否使用服务器(必填): 使用mqtt

  • 问题描述(包含复现issue方式):

    不知为何,mqtt服务器上过一段时间会出现invalid message,
    然后需要重启mqtt服务, 并手动断电重启tc1排插 (就是重新连接mqtt服务器,固件貌似不会自动重连)方能解决问题。
    所以希望大佬能加上自动重连功能,辛苦了!

@a2633063
Copy link
Owner

a2633063 commented Oct 19, 2019

固件本身支持自动重连 我后面会再次确定

@ewayboy
Copy link

ewayboy commented Nov 16, 2019

重启排插后可以重连,谢谢

@vaakian
Copy link
Author

vaakian commented Nov 17, 2019

应该是跟他一样的情况,

  • 能重连的情况:

    当我的mqtt服务器正常时,将mqtt服务重启,tc1会自动重连。(因为mqtt重启过程不会太长)。

  • 不能重连的情况:

    我这边mqtt服务器有时候会挂掉,等到我发现的时候将mqtt服务重启,则tc1不会自动重连,而需要手动断电重连。

@shineanr
Copy link

我也发现类似情况,当mqtt离线一段时间,重启后,tc1就不能重连了,logo灯也会10几秒闪烁一次,app上好像提示设备离线(设备进入调试状态)

@a2633063
Copy link
Owner

暂未复现此问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants