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

Add initial implementation of BLE key pairing #38

Merged
merged 8 commits into from
Oct 11, 2023

Conversation

doggkruse
Copy link
Contributor

No description provided.

Copy link
Collaborator

@natekspencer natekspencer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, see my comments

1) Remove use of global variables
2) Add typing
3) Remove scan_for_device() and require callers to pass in a bleak BLEDevice
4) Open bleak client by device (not by address)
5) Remove retry from pairing function and return status of pairing
6) Check that returned vehicle id matches expected (address todo)
@doggkruse
Copy link
Contributor Author

All feedback should be addressed

1) general cleanup
2) handle notifications for separately per characteristic to avoid possible mixup
3) add notification timeouts
4) log exceptions
@doggkruse
Copy link
Contributor Author

Addressed

@doggkruse
Copy link
Contributor Author

Feedback addressed

@natekspencer natekspencer changed the base branch from main to ble-pairing October 11, 2023 15:40
@natekspencer natekspencer merged commit 21be740 into bretterer:ble-pairing Oct 11, 2023
natekspencer pushed a commit that referenced this pull request Oct 11, 2023
1) Remove use of global variables
2) Add typing
3) Remove scan_for_device() and require callers to pass in a bleak BLEDevice
4) Open bleak client by device (not by address)
5) Remove retry from pairing function and return status of pairing
6) Check that returned vehicle id matches expected (address todo)
natekspencer pushed a commit that referenced this pull request Oct 11, 2023
1) general cleanup
2) handle notifications for separately per characteristic to avoid possible mixup
3) add notification timeouts
4) log exceptions
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

Successfully merging this pull request may close these issues.

2 participants