In some cases, it is desirable to require encryption and/or
authentication for server-initiated updates, as they may contain
sensitive data.
Currently, there is no way to do this with BlueZ.
Here is a query about this feature from 2019:
https://stackoverflow.com/questions/55884233
This patch implements this feature by introducing new `x-asynchronous`
flags that allow a user to restrict access to a characteristic's CCCD
(as well as documentation for those flags).
---
Changes in v2:
- Fix line-width issues brought up by CI
Dagan Martinez (2):
gatt: allow GATT server to dicate CCC permissions
doc/gatt-api: Add 'X-asynchronous` permissions
doc/gatt-api.txt | 11 ++++++++++-
src/gatt-database.c | 30 ++++++++++++++++++++++++++----
src/shared/att-types.h | 4 ++++
3 files changed, 40 insertions(+), 5 deletions(-)
--
2.31.1