--- 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