-
Notifications
You must be signed in to change notification settings - Fork 18
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
Joining with link key #150
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #150 +/- ##
===========================================
+ Coverage 99.87% 100.00% +0.12%
===========================================
Files 6 6
Lines 807 830 +23
===========================================
+ Hits 806 830 +24
+ Misses 1 0 -1
☔ View full report in Codecov by Sentry. |
For this PR, I'm hoping to implement zigpy/zigpy#1261, since the install code can be converted into a link key before getting to the radio library. It looks like XBee implements both at the moment with a simple enum to swap between the two? I think it's enough to just implement joining with a key and provide a stub implementation of the old method. For comparison, here's a PR for zigpy-znp implementing this: https://github.com/zigpy/zigpy-znp/pull/226/files I'll make a PR removing the stub from radio libraries in the future. |
Yes, XBee supports both link keys and install codes, converting the code to the key on device. |
Done. |
Add support for device joining via install codes.
Successful logs:
Unsuccessful logs (invalid IEEE provided):