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

提供一个修改建议 #45

Closed
cmz97 opened this issue Jul 19, 2020 · 1 comment
Closed

提供一个修改建议 #45

cmz97 opened this issue Jul 19, 2020 · 1 comment

Comments

@cmz97
Copy link

cmz97 commented Jul 19, 2020

我发现,在使用您的temperature example的时候,第一次上传ESP8266一切正常,Homekit也可以pairing. 但是在手机上删除此元件后,再次重启ESP8266, 再想去pair,再也搜索不到。我为了绕过这个,就直接comment掉server->paired = true

while (!homekit_storage_next_pairing(&pairing_it, &pairing)) { if (pairing.permissions & pairing_permissions_admin) { //INFO("Found admin pairing with %s, disabling pair setup", pairing.device_id); INFO("XXXXXXXXXX"); // server->paired = true; break; } }
为了永久的解决这个问题,whileloop里面是不是可以加一个flag,可以让user选择force paring。 可以避免这个问题。应为再homekit删除后, 直接force server->paired = true 就跳过了新的pairing机会。

这只是我想的一个办法,您看您有什么更好的办法解决这个问题也可以。
我想说您写的这个库真的很厉害,真的很帮助到我! 感谢

@Mixiaoxiao
Copy link
Owner

Refer to this: https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266/issues/10#issuecomment-613969645

@cmz97 cmz97 closed this as completed Jul 20, 2020
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