Parent: b0502eec1b7bf8615fe429fe662bc7455eac4195
Author: Lukasz Rymanowski <lukasz.rymanowski@tieto.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2014-03-17 11:41:46
Tree: 68d72aa1f5540f580c800535521adbe2c1065889
android/gatt: Add GATT Connect This patch introduce connect LE device functionality. There is gatt_device representing remote le device. Each gatt device has a list own list of clients as it is possible that more apps would like to use same remote device. Possible connect scenarios: 1. There is no ACL connection to device: Then new dev is put on conn_wait_queue and le scan is enabled. Once device is found we do connect it. Once device is connected then device is moved form conn_wait_queue to conn_list and success event is sent to client(s) with conn_id 2. Device is already connected: Then we update client list, reply with success and do send connect event. 3. For unregisterd clients or uknown conn_id, failed response is sent.
Diffstat
| M | android/Android.mk | | | 4 | ++++ |
| M | android/Makefile.am | | | 3 | +++ |
| M | android/gatt.c | | | 494 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - |
3 files changed, 483 insertions(+), 18 deletions(-)