Parent: 6b1b60b6bb84a0f66692907ad0329d774b622a2a
Author: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2014-04-18 16:25:04
Tree: 6fca8d35d5e377266019659e72387455ee320b9c
android/gatt: Fix descriptors discovery gatt_discover_char_desc() may not return all of characteristic's descriptors in single call since they may not fit into single response (i.e. there are simply too many of them or there are both 16- and 128-bit UUID descriptors which cannot be sent in single response). We need to check if all descriptors were already returned by using characteristic handles range and/or status error and request remaining if possible. Retrieved descriptors are stored on temporary queue which is later just swapped with characteristic descriptors queue once finished. This it to make update process atomic-like.
Diffstat
| M | android/gatt.c | | | 39 | +++++++++++++++++++++++++++++++++- - - - - - |
1 files changed, 33 insertions(+), 6 deletions(-)