-
Notifications
You must be signed in to change notification settings - Fork 166
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
How does the bridge device use the dynamic pairing code? (CON-1435) #1173
Comments
Can you please share more insights on your problem. What sort of device are you upgrading, is this like pre-Matter device upgrading to Matter functionality? If you are looking for device to display the onboarding code then that has been addressed in #1128 (comment). You can find relevant information in #1126. |
We have a HomeKit-compatible product that has been mass-produced. I hope it can also be compatible with matter. I want to expand the functionality of matter through OTA upgrades, and use the app to display the dynamic pairing code and open the commission window. Now I don’t know how to develop it. Are there any interfaces I can try to call? |
This is a bridge type device. How to implement these functions on the device side?#1173 (comment) |
Sorry @LinKvFM for the delayed response.
I think this will continue to work with older firmware.
I'd suggest you go through Core Matter Specification section If device do not have any interface to display the QR Code then I think your phone app can be used. |
@shubhamdp Every time I open the commissioning window, the pairing code is the same. How can I change it?
|
I made the changes again, but another problem occurred. I can print the dynamic pairing code, but I can't use it to pair. Every time I use the original 34970112332 to pair.
|
@LinKvFM sorry for the delayed response. If you see the way you have declared, it will be vanished once it goes out of scope. It should either be defined as global or static or dynamically allocated which lasts till the application lifetime.
In light_switch example it is defined as global. (ref: https://github.com/espressif/esp-matter/blob/main/examples/light_switch/main/app_main.cpp#L36) Also, I think you forgot to set the commissionable data provider using I'd suggest you to please take a look at light_switch app for how to implement the dynamic commissionable data provider. And as far as payload generation goes, LGTM! But, I'd still suggest you to cross check it using setup payload parser. eg: |
Thanks, the problem has been solved. |
How to use the dynamic pairing code and how to actively open the commission window? These questions can help me update the matter through OTA in the mass-produced products.
The text was updated successfully, but these errors were encountered: