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

onfire回调问题 #3

Open
QuietClickCode opened this issue Sep 19, 2021 · 1 comment
Open

onfire回调问题 #3

QuietClickCode opened this issue Sep 19, 2021 · 1 comment

Comments

@QuietClickCode
Copy link

首先感谢作者的开源贡献,当我在使用本项目的时候,发现一个问题:第一次进入进入配网没问题,如果第一次进入配网界面后没有配置或者配置失败返回主界面,那么第二次再次配网就会失败,必须杀掉小程序,才行。第二次配网也会导致esp32死机重启。经过排查,发现是onfire 第一次配网后,没有取消订阅,就会导致,后面点击配网多次触发回调。需要调用clear()清空。还有xBlufi.js中的un()取消订阅方法的参数应该是写错了,为事件名,而不是回调函数。使用过程中遇到的坑,提出一些改进意见,再次感谢作者的开源贡献

@eeeeeeeason
Copy link

所以应该怎么改?。。。请求指点

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

2 participants