aboutsummaryrefslogtreecommitdiffstats
path: root/attrib/gatttool.c
diff options
context:
space:
mode:
authorSheldon Demario <sheldon.demario@openbossa.org>2011-03-16 19:00:56 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2011-03-17 14:50:59 +0200
commit922c5feb93adfb9773a854d8e89eb2c5604e632b (patch)
tree6437cff05ed5f701ba4aa21fece8c54dbe196dd9 /attrib/gatttool.c
parent2da716f340e99d315a9c773ea95253d583ba2b74 (diff)
downloadbluez-922c5feb93adfb9773a854d8e89eb2c5604e632b.tar.gz
bluez-922c5feb93adfb9773a854d8e89eb2c5604e632b.tar.xz
bluez-922c5feb93adfb9773a854d8e89eb2c5604e632b.zip
Add discover characteristics by UUID to gatttool
According to the specification the characteristics discover and characteristics discover by UUID use the same opcode and the result should be filtered by callback.
Diffstat (limited to 'attrib/gatttool.c')
-rw-r--r--attrib/gatttool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/attrib/gatttool.c b/attrib/gatttool.c
index 729e18d5..0dfbc046 100644
--- a/attrib/gatttool.c
+++ b/attrib/gatttool.c
@@ -206,7 +206,8 @@ static gboolean characteristics(gpointer user_data)
{
GAttrib *attrib = user_data;
- gatt_discover_char(attrib, opt_start, opt_end, char_discovered_cb, NULL);
+ gatt_discover_char(attrib, opt_start, opt_end, opt_uuid,
+ char_discovered_cb, NULL);
return FALSE;
}