-
Notifications
You must be signed in to change notification settings - Fork 76
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
Integrating Pairing : Identifying if a device already is bonded #184
Comments
The keys in the file-based key store are stored per-address, and unbond.py should really only remove the keys for a single address (it you don't pass an address, it just prints all the keys but doesn't remove anything, which the help text really should document...). Finally, about encryption on LE: just being paired doesn't mean you'll have encryption enabled. In a connection, one of the peers will need to request it. That's done with |
Thanks again for explaining.
|
I am currently Integrating the pairing functionality into my custom app.
Basically the flow would be when on_connect check if the address is in the keystore , if it is continue else pairing mode.
However I have not been able to get this check correctly done as the address of the connecting device - Android keeps changing .
I looked at the unbond.py app and it seems to remove all bonds and isnt specific to an address or device to unbond from .
Any pointers here will help .
At present I always need to unpair and repair for me to get my app to continue execution of the rest of the code.
The only time a check for if connection.is_encrypted went through was when i paired via Windows and it used the same address as previous connections.
Issue is seen on pair.py as well where when i restart the app after first pairing it doesnt progress until I unpair and repair on an Android phone.
The text was updated successfully, but these errors were encountered: