diff --git a/bumble/gatt_client.py b/bumble/gatt_client.py index 65a3c849..94799a36 100644 --- a/bumble/gatt_client.py +++ b/bumble/gatt_client.py @@ -547,7 +547,9 @@ class Client: for subscriber_set in subscriber_sets: if subscriber is not None: subscriber_set.add(subscriber) - subscriber_set.add(lambda value: characteristic.emit('update', self.connection, value)) + # Add the characteristic as a subscriber, which will result in the characteristic + # emitting an 'update' event when a notification or indication is received + subscriber_set.add(characteristic) await self.write_value(cccd, struct.pack('