mynewt-nimble icon indicating copy to clipboard operation
mynewt-nimble copied to clipboard

Feature: Support to ask user for authorization

Open Singh-Sumeet opened this issue 2 years ago • 4 comments

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 avatar Dec 29 '23 10:12 Singh-Sumeet

@sjanc Please TAL

Singh-Sumeet avatar Dec 29 '23 10:12 Singh-Sumeet

@sjanc PTAL

Singh-Sumeet avatar Feb 15 '24 09:02 Singh-Sumeet

@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.

andrzej-kaczmarek avatar Mar 01 '24 09:03 andrzej-kaczmarek

Hi @andrzej-kaczmarek , I have made the required changes. I don't understand what you mean by making it "Authorization Asynchronous", but I have created the macro nonetheless.

Singh-Sumeet avatar Aug 27 '24 07:08 Singh-Sumeet