{
int ret;
bt_gatt_characteristic_s *chr = (bt_gatt_characteristic_s *)characteristic;
+ gboolean is_indicate = false;
#ifdef TIZEN_GATT_CLIENT
bt_gatt_handle_property_t svc_handle;
BT_INFO("Characteristic properties [%d] charc UUID [%s]",
chr->properties, chr->uuid);
+ if (chr->properties & BT_GATT_PROPERTY_INDICATE)
+ is_indicate = true;
+
if (chr->properties &
(BT_GATT_PROPERTY_NOTIFY | BT_GATT_PROPERTY_INDICATE)) {
&svc_handle,
&chr_handle,
client_s->client_id,
- TRUE));
+ TRUE,
+ is_indicate));
#else
bt_get_uuid_name(svc->uuid, &name);
ret = _bt_get_error_code(bluetooth_gatt_watch_characteristics(
{
int ret;
bt_gatt_characteristic_s *chr = (bt_gatt_characteristic_s *)characteristic;
-
+ gboolean is_indicate = false;;
#ifdef TIZEN_GATT_CLIENT
bt_gatt_handle_property_t svc_handle;
bt_gatt_handle_property_t chr_handle;
__bt_string_to_uuid_hex(chr->uuid, chr_handle.uuid);
chr_handle.instance_id = chr->instance_id;
#endif
+
+ if (chr->properties & BT_GATT_PROPERTY_INDICATE)
+ is_indicate = true;
+
if (chr->properties &
(BT_GATT_PROPERTY_NOTIFY | BT_GATT_PROPERTY_INDICATE)) {
#ifdef TIZEN_GATT_CLIENT
&svc_handle,
&chr_handle,
client_s->client_id,
- FALSE));
+ FALSE,
+ is_indicate));
#else
ret = _bt_get_error_code(
bluetooth_gatt_unwatch_characteristics(chr->path));