DBG("Device connected.");
bt_gatt_client_unref(client->gatt);
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ /* The Client data is not getting updated
+ * while clone logic is used, because of which
+ * the notification callbacks and other debug callbacks
+ * are not getting set properly, untill the clone logic
+ * is fixed, the ref logic is used */
+ client->gatt = bt_gatt_client_ref(gatt);
+#else
client->gatt = bt_gatt_client_clone(gatt);
-
+#endif
/*
* Services have already been created before. Re-enable notifications
* for any pre-registered notification sessions.