OSDN Git Service

shared/gatt-client: Speed up discovery
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 5 Jun 2015 13:36:27 +0000 (16:36 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 11 Jun 2015 13:05:23 +0000 (16:05 +0300)
commitf49b0428c89c8f0114e5e113d03796aa0a765f7d
tree8335adf1e8e3fe136ca8a2973fa0720b757fe0a0
parentd7a375c0fc89a9bafb263c4c6a763c53ab54d4a9
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.
src/device.c
src/gatt-client.c
src/shared/gatt-client.c
src/shared/gatt-db.c