mirror of
https://github.com/google/bumble.git
synced 2026-05-06 03:38:01 +00:00
Merge pull request #71 from mogenson/prefer-notify
Add prefer_notify option to gatt_client subscribe()
This commit is contained in:
@@ -294,8 +294,8 @@ class Peer:
|
||||
async def discover_attributes(self):
|
||||
return await self.gatt_client.discover_attributes()
|
||||
|
||||
async def subscribe(self, characteristic, subscriber=None):
|
||||
return await self.gatt_client.subscribe(characteristic, subscriber)
|
||||
async def subscribe(self, characteristic, subscriber=None, prefer_notify=True):
|
||||
return await self.gatt_client.subscribe(characteristic, subscriber, prefer_notify)
|
||||
|
||||
async def unsubscribe(self, characteristic, subscriber=None):
|
||||
return await self.gatt_client.unsubscribe(characteristic, subscriber)
|
||||
|
||||
Reference in New Issue
Block a user