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

Feature: Support to ask user for authorization #1668

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Singh-Sumeet
Copy link

This MR aims to add:

  1. Support to ask user for authorization in case of GATT read or write operations.
  2. Relevant event handling in bleprph app.

@Singh-Sumeet
Copy link
Author

@sjanc Please TAL

nimble/host/include/host/ble_gap.h Outdated Show resolved Hide resolved
nimble/host/include/host/ble_gap.h Show resolved Hide resolved
nimble/host/src/ble_gap.c Outdated Show resolved Hide resolved
nimble/host/src/ble_gap.c Outdated Show resolved Hide resolved
@Singh-Sumeet
Copy link
Author

@sjanc PTAL

@andrzej-kaczmarek
Copy link
Contributor

@Singh-Sumeet we discussed with @sjanc and we agreed that return value from callback should be used instead of event struct field. we'd also like to have an option in future to make it authorization asynchronous so the return values should be reject, accept, pending - please add appropriate macros for that. reject should be set to 0 so authorization is rejected by default.

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.

None yet

3 participants