Commit: f49b0428c89c8f0114e5e113d03796aa0a765f7d
Parent: d7a375c0fc89a9bafb263c4c6a763c53ab54d4a9
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2015-06-11 16:05:23
Tree: 8335adf1e8e3fe136ca8a2973fa0720b757fe0a0

shared/gatt-client: Speed up discovery This tune the discovery to take advantage of the cached database whenever possible, so instead of clearing the whole db if the device is not paired the code now make the remote services active once they are discovered and with that bt_gatt_client can then skip discovering characteristics and descriptors of services that have not changed since last connection which improves the reconnecting speed for any device regardless if the device was paired or not.

Diffstat

M src/device.c | 18 +++++++- - - - - - - - - - -
M src/gatt-client.c | 17 +++++- - - - - - - - - - - -
M src/shared/gatt-client.c | 44 ++++++++++++++++++++++++++++- - - - - - - - - - - - - - - -
M src/shared/gatt-db.c | 33 +++++++++++++++++++++++++++- - - - - -

4 files changed, 67 insertions(+), 45 deletions(-)

View Full Diff | Patch