Skip to content

Commit

Permalink
Merge pull request #5 from kolergy/fix_MTU_on_Linux_BlueZ
Browse files Browse the repository at this point in the history
Fix mtu on linux blue z
  • Loading branch information
uma-shankar-TE authored Dec 10, 2024
2 parents 1eb2014 + 38132c7 commit 8e9e4b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "frame-sdk"
version = "1.2.3"
authors = [{ name = "Roger Pincombe", email = "pip@betechie.com" },{ name = "Brilliant Labs", email = "info@brilliant.xyz" }]
description = "Python Developer SDK for Brilliant Frame glasses"
readme = "readme.md"
readme = "README.md"
requires-python = ">=3.7"
license = { file = "license.md" }
classifiers = [
Expand Down
3 changes: 3 additions & 0 deletions src/frame_sdk/bluetooth.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ async def connect(

try:
await self._btle_client.connect()
# Workaround to acquire MTU size because Bleak doesn't do it automatically when using BlueZ backend
if self._btle_client._backend.__class__.__name__ == "BleakClientBlueZDBus":
await self._btle_client._backend._acquire_mtu()

await self._btle_client.start_notify(
self._RX_CHARACTERISTIC_UUID,
Expand Down

0 comments on commit 8e9e4b8

Please sign in to comment.