summaryrefslogtreecommitdiff
path: root/tools/btgatt-client.c
diff options
context:
space:
mode:
authorƁukasz Rymanowski <lukasz.rymanowski@codecoup.pl>2016-04-13 23:09:55 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2016-04-22 14:35:52 +0300
commit00910a68a7d5897fc63148e6e827c5eb545c2518 (patch)
tree545c1ede09c18e55e1e91859e48bc1b1b0471cad /tools/btgatt-client.c
parentcbf002b197d178d0fd46ee12d8170ca07c3c82bc (diff)
downloadbluez-00910a68a7d5897fc63148e6e827c5eb545c2518.tar.gz
shared/gatt-db: Extend gatt_db_attribute_get_char_data with ext. prop
This patch adds way to get extended properties from characteristic extended property descriptor
Diffstat (limited to 'tools/btgatt-client.c')
-rw-r--r--tools/btgatt-client.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c
index 2153bec43..4c8c9dda9 100644
--- a/tools/btgatt-client.c
+++ b/tools/btgatt-client.c
@@ -297,18 +297,20 @@ static void print_chrc(struct gatt_db_attribute *attr, void *user_data)
{
uint16_t handle, value_handle;
uint8_t properties;
+ uint16_t ext_prop;
bt_uuid_t uuid;
if (!gatt_db_attribute_get_char_data(attr, &handle,
&value_handle,
&properties,
+ &ext_prop,
&uuid))
return;
printf("\t " COLOR_YELLOW "charac" COLOR_OFF
- " - start: 0x%04x, value: 0x%04x, "
- "props: 0x%02x, uuid: ",
- handle, value_handle, properties);
+ " - start: 0x%04x, value: 0x%04x, "
+ "props: 0x%02x, ext_props: 0x%04x, uuid: ",
+ handle, value_handle, properties, ext_prop);
print_uuid(&uuid);
gatt_db_service_foreach_desc(attr, print_desc, NULL);