Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code simplification #11

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Code simplification #11

wants to merge 4 commits into from

Conversation

janvrany
Copy link

This pull request simplifies the code by running everything in single asyncio loop. This is possible since recent bleak also supports macOS and Windows. This code depends on earlier PR #5 by @dlech .

dlech and others added 4 commits January 6, 2020 22:52
bleak now has macOS support, so we don't need the separate
Adafriut library for macOS.
This allows to run BLEAK interface in the same loop as
hubs, which makes it simpler.
Since both the hub and BLEAK is running within the same asyncio loop,
we can call BLEAK APIs directly within hub control flow.
Since both user-code and Bluetooth handling code runs in the
same asyncio loop, we can communicate directly and not through
the queue.
@janvrany janvrany mentioned this pull request Jan 14, 2020
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