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

Enable / disable pairing+bonding #36

Open
benjaminaigner opened this issue Jun 29, 2020 · 2 comments
Open

Enable / disable pairing+bonding #36

benjaminaigner opened this issue Jun 29, 2020 · 2 comments

Comments

@benjaminaigner
Copy link
Collaborator

Currently, it is not possible to deny any pairing requests.

We should include the possibility to deny pairing requests by default and enable them by a command via the external UART.

As there is no useful documentation how to do that,
I think it should be sufficient to deny an authentication request here

esp_ble_gap_security_rsp(param->ble_security.ble_req.bd_addr, true);

by returning false.

Nevertheless, if we switch OFF pairing by default, it would break compatibility.
So I suggest we enable this feature by a new KConfig file.

@benjaminaigner
Copy link
Collaborator Author

Unfortunately, the whitelist approach should work in general, but this is currently broken in esp-idf:
espressif/esp-idf#2262

benjaminaigner added a commit that referenced this issue Jul 2, 2020
Note that currently it is not possible to activate the pairing on/off option,
because it is broken in the esp-idf.
@benjaminaigner
Copy link
Collaborator Author

Maybe there is a solution: espressif/esp-idf#8613

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

No branches or pull requests

1 participant