Parent: 4e5989f121f156afa6c2d2bf0009af9153097f58
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-12-24 16:13:02
Tree: b5c171ca8059ffc5c0fd9b778d6715a0c9cd25f6
core/gatt: Don't always issue read-long for ReadValue A remote GATT server may not support the "long read" procedure for all of its attributes (or not at all). This patch revises the implementation of GattCharacteristic1.ReadValue and GattDescriptor1.ReadValue, so that instead of always initiating a "long read" (i.e. ATT Read Blob Req), they first send out a regular read request and then proceed to a long read only if the value fills the current MTU and may potentially have more bytes waiting.
Diffstat
| M | src/gatt-client.c | | | 133 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
1 files changed, 98 insertions(+), 35 deletions(-)