client: Allow gatt.select-attribute to work with local attributes
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 5 Dec 2022 22:26:17 +0000 (14:26 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:11:34 +0000 (15:41 +0530)
commit4be279fe60596ae7c4c93c34795c0286a1b04af6
tree0716266a1ab4dc57de676808297ad1d7aeaeeb2c
parent9f338896eb26b7e6461026461580d9422033983a
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]#
client/gatt.c
client/gatt.h
client/main.c