change the condition for BLE connected callback
authorJaewook Jung <jw0213.jung@samsung.com>
Mon, 2 May 2016 07:43:06 +0000 (16:43 +0900)
committerJon A. Cruz <jon@joncruz.org>
Tue, 10 May 2016 05:58:55 +0000 (05:58 +0000)
commit02842b31e3adc1d8cc02bf74c4b3925d64b4cb81
tree667ee36b282cfecc2e5fa44c8657eac59247767c
parent8ba29a3944b923711568dc195e81ea7d01ab8bce
change the condition for BLE connected callback

As BLE connected callback means communication on BLE is available for user,
the callback should be called on DescriptorWrite success callback which is the last step
for BLE communication.
However, since there is a case that gatt descriptor can not be found,
the callback needs to be called on ServicesDiscovered callback in this case.

Change-Id: I9d0daa233a1b605e70857d9fcc584f9224f53e03
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8025
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
android/android_api/base/src/main/java/org/iotivity/ca/CaLeClientInterface.java
resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.c
resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.h
resource/csdk/connectivity/src/bt_le_adapter/android/calenwmonitor.c
resource/csdk/connectivity/src/bt_le_adapter/android/caleutils.h