From 5d0fadf061dc0bb3249b53771c3ea4847dc4ee1a Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 3 Oct 2017 13:55:07 +0300 Subject: [PATCH] gatt: Fix not sending indications properly When using AcquireNotify with notifications the code would assume that notification would always be used instead of checking if indications are supported. --- src/gatt-database.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gatt-database.c b/src/gatt-database.c index e84c19198..0c84b2569 100644 --- a/src/gatt-database.c +++ b/src/gatt-database.c @@ -1830,7 +1830,8 @@ static bool pipe_io_read(struct io *io, void *user_data) gatt_db_attribute_get_handle(chrc->attrib), buf, bytes_read, gatt_db_attribute_get_handle(chrc->ccc), - false, NULL); + chrc->props & BT_GATT_CHRC_PROP_INDICATE, + NULL); return true; } -- 2.47.3