bluetooth: host: Persist Service Changed data

Add support for persisted Service Changed data, to fix the case of a
paired device not reconnecting before a reboot and thus not receiving
SC indication. It also enables support for GATT database being changed
during a firmware update.

Move Service Changed data outside of the CCC struct and make it
persistent by adding support for a bt/sc/... setting.

Signed-off-by: François Delawarde <fnde@oticon.com>
This commit is contained in:
François Delawarde 2019-10-04 14:29:11 +02:00 committed by Carles Cufí
commit 1ce95de6ae
2 changed files with 344 additions and 69 deletions

View file

@ -563,7 +563,6 @@ struct bt_gatt_ccc_cfg {
u8_t id;
bt_addr_le_t peer;
u16_t value;
u8_t data[4] __aligned(4);
};
/* Internal representation of CCC value */