forked from hbldh/bleak
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix connecting to multiple devices on Mac
This fixes connecting to multiple devices when using a single BleakScanner in the CoreBluetooth backend. Previously, the central manager held a reference to a single peripheral, so if a second peripheral was connected using the same central manager, it would overwrite the first. This removes the coupling so that the peripheral is passed as an argument to the central manager methods instead.
- Loading branch information
Showing
3 changed files
with
70 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.