* [PATCH BlueZ] Fix characteristic property on GATT example plugin
@ 2011-09-21 2:57 Anderson Lizardo
2011-09-27 9:19 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Anderson Lizardo @ 2011-09-21 2:57 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Anderson Lizardo
Any GATT characteristics which have a Client Characteristic
Configuration must have "Notify" property set.
---
plugins/gatt-example.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/plugins/gatt-example.c b/plugins/gatt-example.c
index f86e76d..334f74a 100644
--- a/plugins/gatt-example.c
+++ b/plugins/gatt-example.c
@@ -81,7 +81,7 @@ static void register_battery_service(void)
/* Battery: battery state characteristic */
bt_uuid16_create(&uuid, GATT_CHARAC_UUID);
- atval[0] = ATT_CHAR_PROPER_READ;
+ atval[0] = ATT_CHAR_PROPER_READ | ATT_CHAR_PROPER_NOTIFY;
att_put_u16(h + 1, &atval[1]);
att_put_u16(BATTERY_STATE_UUID, &atval[3]);
attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 5);
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH BlueZ] Fix characteristic property on GATT example plugin
2011-09-21 2:57 [PATCH BlueZ] Fix characteristic property on GATT example plugin Anderson Lizardo
@ 2011-09-27 9:19 ` Johan Hedberg
0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2011-09-27 9:19 UTC (permalink / raw)
To: Anderson Lizardo; +Cc: linux-bluetooth
Hi Lizardo,
On Tue, Sep 20, 2011, Anderson Lizardo wrote:
> Any GATT characteristics which have a Client Characteristic
> Configuration must have "Notify" property set.
> ---
> plugins/gatt-example.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Applied. Thanks.
Johan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-27 9:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-21 2:57 [PATCH BlueZ] Fix characteristic property on GATT example plugin Anderson Lizardo
2011-09-27 9:19 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).