gatt-database: Add OCF service handling logic 17/295417/1 accepted/tizen/7.0/unified/20230710.155130
authorWootak Jung <wootak.jung@samsung.com>
Thu, 6 Jul 2023 05:59:20 +0000 (14:59 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Fri, 7 Jul 2023 01:14:47 +0000 (10:14 +0900)
commit5fff92b40bb8501dba76e436f8a0826fedb3a411
treedb2f21400425d4f0cafb760462917df174482a0b
parent58befcc1c6c8c8ab5dd9186aca3639b29f07d095
gatt-database: Add OCF service handling logic

1. invalid handle issue
For bluez, the handle increases whenever service is added.
Invalid handle error occurs because mobile caches the handle for paired remote
device. Modify to use reserved handle for ocf uuid.

2. service persistence issue
Mobile is caching without service if gatt connection is lost while service is
removed.
Modify service changed notification not to be delivered for ocf service.

Change-Id: I48d6b649a7adbc3142a2525e02c904271e9b9f9c
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
lib/uuid.h
src/gatt-database.c
src/shared/gatt-db.c