Commit: 61576a8e78c321d67412c6a49ef293c94ec8a235
Parent: 7d0fc7e7f0e4585a97c6a214872106507d1199b9
Author: Dagan Martinez <dmartinez@starry.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2021-10-01 20:59:14
Tree: c48e52cdc7a7f3c809cefb30c3a06f71ee4ac9b8

gatt: Allow GATT server to dicate CCC permissions Allow a GATT server to impose write permissions/restrictions on a CCC by setting additional `X-notify` and `X-indicate` flags on its associated characteristic. This allows a developer to require encryption/authentication in order for a GATT client to subscribe to server-initiated updates. ``` [bluetooth]# register-characteristic\ 4b75f0f8-1f23-46b1-900c-5bbabcd5ca93 encrypt-read,encrypt-notify [NEW] Characteristic (Handle 0x0000) /org/bluez/app/service0/chrc17 4b75f0f8-1f23-46b1-900c-5bbabcd5ca93 Vendor specific [/org/bluez/app/service0/chrc17] Enter value: 42 ```

Diffstat

M src/gatt-database.c | 52 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - -

1 files changed, 42 insertions(+), 10 deletions(-)

View Full Diff | Patch