diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-12-05 14:26:17 -0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-12-06 13:01:28 -0800 |
commit | 9a550d43b84ed808ff2a678b0117a8e14355d80c (patch) | |
tree | a97071b0e02dab190cfbf4cd71de549b72c565a8 /client/gatt.h | |
parent | 35947e26771c89d965aec5ad059267bb8c15298e (diff) | |
download | bluez-9a550d43b84ed808ff2a678b0117a8e14355d80c.tar.gz |
client: Allow gatt.select-attribute to work with local attributes
This allows gatt.select-attribute local to select from the registered
attributes:
[bluetooth]# gatt.select-attribute local /org/bluez/app/service0/chrc0
[/org/bluez/app/service0/chrc0]# gatt.write 0x01
[CHG] Attribute /org/bluez/app/service0/chrc0 (%UUID) written
[/org/bluez/app/service0/chrc0]# gatt.read
01 .
[/org/bluez/app/service0/chrc0]# gatt.select-attribute local
/org/bluez/app/service0/chrc1
[/org/bluez/app/service0/chrc1]# gatt.write 0x01
[CHG] Attribute /org/bluez/app/service0/chrc1 (%UUID) written
[/org/bluez/app/service0/chrc1]# gatt.read
01 .
[/org/bluez/app/service0/chrc1]#
Diffstat (limited to 'client/gatt.h')
-rw-r--r-- | client/gatt.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/gatt.h b/client/gatt.h index fc2b8a8a6..bed9d3a68 100644 --- a/client/gatt.h +++ b/client/gatt.h @@ -32,6 +32,10 @@ void gatt_release_write(GDBusProxy *proxy, const char *arg); void gatt_acquire_notify(GDBusProxy *proxy, const char *arg); void gatt_release_notify(GDBusProxy *proxy, const char *arg); +char *gatt_select_local_attribute(const char *arg); +void gatt_read_local_attribute(char *data, int argc, char *argv[]); +void gatt_write_local_attribute(char *data, int argc, char *argv[]); + void gatt_add_manager(GDBusProxy *proxy); void gatt_remove_manager(GDBusProxy *proxy); |