From c70324117069bed8eb42d185a407ae58f4793eb1 Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Tue, 20 Sep 2011 22:57:05 -0400 Subject: [PATCH] Fix characteristic property on GATT example plugin Any GATT characteristics which have a Client Characteristic Configuration must have "Notify" property set. --- plugins/gatt-example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gatt-example.c b/plugins/gatt-example.c index f86e76dc9..334f74a58 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); -- 2.47.3