Handling characteristics properties Indicate and Notify functionality
[platform/core/connectivity/bluetooth-frwk.git] / bt-service-adaptation / services / bt-request-handler.c
index b9cf221..2acfa31 100644 (file)
@@ -2689,6 +2689,7 @@ int __bt_bluez_request(int function_name,
                gboolean is_notify;
                int fd = -1;
                int mtu = 0;
+               gboolean is_indicate;
 
 
                memset(&param, 0x00, sizeof(bluetooth_gatt_client_char_prop_info_t));
@@ -2701,9 +2702,10 @@ int __bt_bluez_request(int function_name,
                                sizeof(int));
                __bt_service_get_parameters(in_param3, &is_notify,
                                sizeof(gboolean));
+               __bt_service_get_parameters(in_param4, &is_indicate,
+                               sizeof(gboolean));
 
-
-               if (is_notify == true) {
+               if (is_indicate == false) {
                        result   = _bt_gatt_acquire_notify(&param , &fd, &mtu);
                        if (BLUETOOTH_ERROR_NONE == result && fd > -1) {
                                BT_INFO("GATT Client: Save Invocation data for characteristic props app[%s] fd[ %d]", sender, fd);