Skip to content

Fix bleak 3.x compatibility on macOS CoreBluetooth - #69

Open
functionsonly wants to merge 1 commit into
Patrick762:mainfrom
functionsonly:fix/bleak3-corebluetooth-compat
Open

Fix bleak 3.x compatibility on macOS CoreBluetooth#69
functionsonly wants to merge 1 commit into
Patrick762:mainfrom
functionsonly:fix/bleak3-corebluetooth-compat

Conversation

@functionsonly

Copy link
Copy Markdown
  • Use plain BleakClient on macOS (Darwin) instead of bleak_retry_connector which is incompatible with bleak 3.x on CoreBluetooth
  • Add response=False to challenge and command write_gatt_char calls
  • Add response=True to pubkey write_gatt_char call (required by device)
  • Subscribe to both ff01 and ff03 notify characteristics
  • Add pubkey_sent flag to prevent duplicate concurrent handshake responses
  • Add NOTIFY_UUID2 constant for ff03 characteristic

Tested on macOS Tahoe with Bluetti EL30V2 and bleak 3.0.2

- Use plain BleakClient on macOS (Darwin) instead of bleak_retry_connector
  which is incompatible with bleak 3.x on CoreBluetooth
- Add response=False to challenge and command write_gatt_char calls
- Add response=True to pubkey write_gatt_char call (required by device)
- Subscribe to both ff01 and ff03 notify characteristics
- Add pubkey_sent flag to prevent duplicate concurrent handshake responses
- Add NOTIFY_UUID2 constant for ff03 characteristic

Tested on macOS Tahoe with Bluetti EL30V2 and bleak 3.0.2
@Patrick762 Patrick762 self-assigned this Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants