OSDN Git Service

Fix gatt_read_char() to support long Attrib Values
authorBrian Gix <bgix@codeaurora.org>
Fri, 7 Jan 2011 00:39:43 +0000 (16:39 -0800)
committerJohan Hedberg <johan.hedberg@nokia.com>
Fri, 7 Jan 2011 19:31:34 +0000 (21:31 +0200)
commitacdc181a5d97687f17815953db052e1534ddafb8
treeb8bf1f3b2706766e0d0973d48fa1414211feb352
parent7f0b31cbb436a93e41f1b67cbbd2e7d217b9d0c7
Fix gatt_read_char() to support long Attrib Values

Fix gatt_read_char() to support long Attribute Values by recognizing
that results longer that 21 octets may include data beyond
what has been returned with the first read. Extra data is
obtained by issuing READ_BLOB requests until either a
result is returned shorter than 22 octets, or an error
is recieved indicating that no further data is available.
The API for this function has not changed.
attrib/gatt.c