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

Fix timing issue during pairing, add pairing control/status methods #6

Merged
merged 4 commits into from Jan 4, 2021

Conversation

eltos
Copy link

@eltos eltos commented Jan 4, 2021

As disussed in arduino-libraries#36 (comment)

This solves the issues I encountered with the DHKey not yet available when the check is received here or the DHKey computation completing during the call to HCI.readBdAddr() here causing an outdated encryptionState to be assumed.

@unknownconstant unknownconstant linked an issue Jan 4, 2021 that may be closed by this pull request
Comment on lines 34 to +35
_supervisionTimeout(0)
,_pairing_enabled(1)
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
_supervisionTimeout(0)
,_pairing_enabled(1)
_supervisionTimeout(0),
_pairing_enabled(1)

Copy link
Owner

@unknownconstant unknownconstant left a comment

Choose a reason for hiding this comment

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

Thank you for this - I noticed you fixed that the Ea value wasn't being checked too, thank you. I think different security features may warrant their own example sketches - the one I had put in needed updating so I'm happy for your version to overwrite it.

@unknownconstant unknownconstant merged commit 283038f into unknownconstant:master Jan 4, 2021
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.

Enable / disable pairing mode
2 participants