From 66c966e69f1b2ac1fa68409a1b8fc03052ac9fb6 Mon Sep 17 00:00:00 2001 From: "jihwan.seo" Date: Thu, 8 Sep 2016 14:31:30 +0900 Subject: [PATCH] [IOT-1265] fix writeCharacteristic success signal logic Change-Id: Ib9a5b4ad18298fc2541fb128d964e2e634280cb2 Signed-off-by: jihwan.seo Reviewed-on: https://gerrit.iotivity.org/gerrit/11539 Tested-by: jenkins-iotivity Reviewed-by: Jaehong Jo Reviewed-by: Ashok Babu Channa --- resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.c b/resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.c index cbd5dbd..94d4f8a 100644 --- a/resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.c +++ b/resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.c @@ -2236,6 +2236,8 @@ CAResult_t CALESetValueAndWriteCharacteristic(JNIEnv* env, jobject gatt) g_isSignalSetFlag = false; ca_mutex_unlock(g_threadWriteCharacteristicMutex); + CALEClientUpdateSendCnt(env); + OIC_LOG(INFO, TAG, "writeCharacteristic success!!"); return CA_STATUS_OK; } @@ -4477,8 +4479,6 @@ Java_org_iotivity_ca_CaLeClientInterface_caLeGattCharacteristicWriteCallback( g_isSignalSetFlag = true; ca_cond_signal(g_threadWriteCharacteristicCond); ca_mutex_unlock(g_threadWriteCharacteristicMutex); - - CALEClientUpdateSendCnt(env); } (*env)->ReleaseStringUTFChars(env, jni_address, address); -- 2.7.4