gatt: Add support for storing Service Changed CCC value 69/204969/1
authorSzymon Janc <szymon.janc@codecoup.pl>
Wed, 28 Mar 2018 10:10:55 +0000 (12:10 +0200)
committerAmit Purwar <amit.purwar@samsung.com>
Mon, 29 Apr 2019 03:32:14 +0000 (09:02 +0530)
commitf2f6ed3e062256cccf9f3c6236e9ac9411e1c88a
treedc0c1c5ca19876528c885bcaa4d1800a19377116
parent9a85fddc0bfe1b0b59dba6dfa64a05c6f7c9a865
gatt: Add support for storing Service Changed CCC value

This adds support for storing CCC value of Service Changed
characteristic. Once bluetoothd is restart stored values are read
and any device subscribed to indications will receive Service Changed
indication with 0x00010-0xffff value. This is to invalidate any
non-core services since there is no way to verify if applications
will register their services in same order (or at all).

This fix accessing invalid handles by stacks that rely only on Service
Changed indication for rediscovery ie. Apple iOS.

Change-Id: I742bb2520a02d73aa69ca0ab5ac8c885e701c498
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
doc/settings-storage.txt
src/adapter.c
src/device.c
src/device.h
src/gatt-database.c
src/gatt-database.h