[PATCHv2 23/27] android/bas: Enable Battery Level notifications after reconnection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 android/bas.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/android/bas.c b/android/bas.c
index d70a44d..145d4da 100644
--- a/android/bas.c
+++ b/android/bas.c
@@ -149,6 +149,10 @@ bool bt_bas_attach(struct bt_bas *bas, struct bt_gatt_client *client)
 
 	if (!bas->handle)
 		gatt_db_service_foreach_char(attrib, bas_discovered_cb, bas);
+	else
+		bas->id = bt_gatt_client_register_notify(bas->client,
+						bas->handle, ccc_written_cb,
+						notification_cb, bas, NULL);
 
 	return true;
 }
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux