Revert Patch CCCD change 81/196681/1 accepted/tizen/5.0/unified/20190104.061344 submit/tizen_5.0/20190103.112716 submit/tizen_5.0/20190104.030922
authorAmit KS <amit.s12@samsung.com>
Thu, 3 Jan 2019 11:23:45 +0000 (16:53 +0530)
committerAmit KS <amit.s12@samsung.com>
Thu, 3 Jan 2019 11:23:45 +0000 (16:53 +0530)
CCCD change in GATT Server is reverted

Change-Id: I3413945924bfec5794f34ddd8b58e1def3670b1c
Signed-off-by: Amit KS <amit.s12@samsung.com>
resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_vd.c

index f1a5f6e..6a52aed 100644 (file)
@@ -859,6 +859,10 @@ CAResult_t CAAddNewCharacteristicsToGattServer(const bt_gatt_h svcPath, const ch
 
     if (read)
     {
+        g_gattReadCharPath = charPath;
+    }
+    else
+    {
         char desc_value[2] = {0, 0};  // Notification enabled.
         bt_gatt_h descriptor = NULL;
         permissions = BT_GATT_PERMISSION_READ | BT_GATT_PERMISSION_WRITE;
@@ -883,9 +887,6 @@ CAResult_t CAAddNewCharacteristicsToGattServer(const bt_gatt_h svcPath, const ch
                       CALEGetErrorMsg(ret));
             return CA_STATUS_FAILED;
         }
-        g_gattReadCharPath = charPath;
-    }
-    else{
         g_gattWriteCharPath = charPath;
     }