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

QR code生成 #9

Open
liuqiangqrs opened this issue Jul 17, 2020 · 3 comments
Open

QR code生成 #9

liuqiangqrs opened this issue Jul 17, 2020 · 3 comments

Comments

@liuqiangqrs
Copy link

homekit的二维码怎么生成呢?
https://www.studiopieters.nl/esp-homekit-sdk-qr-code/
https://github.com/maximkulkin/esp-homekit

这两个链接我参考上边的方法做出来homekit可以识别二维码,但是不能用,不能添加设备。

微信图片_20200717151114

@shahpiyushv
Copy link
Collaborator

@liuqiangqrs have you used the correct setup id and accessory category while generating the QR code? Similar QR can also be generated by following the steps here. The information already encoded in accessory_setup.bin has been generated using this:

$ ./provision_raspi.sh --category 5 --setup-code 111-22-333 --setup-id ES32 Lightbulb

@liuqiangqrs
Copy link
Author

如果固件中的setup_id 和生成二维码的setup_id不一样会导致homekit不能成功给esp32配网吗?我看资料说setup_id是可以是一个随机值。我参考的链接的方法有问题吗?

@shahpiyushv
Copy link
Collaborator

@liuqiangqrs , sorry this wasn't answered earlier. setup_id from QR code needs to match the one programmed in accessory, even though it is random. Were you able to move past this issue?

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