-
Notifications
You must be signed in to change notification settings - Fork 304
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
Implement macOS backend #3
Comments
PyObjC documentation shows an example of creating an objective-c style python class here. I simply followed the examples on that site to avoid any unexplained behavior that may have arisen. However, I never tested the code without replacing |
The discovery timout in |
I will not argue with the official documentation's advice to rebind |
Rearranging imports Some logging modifications Added separate handling of read descriptor data Fix for stop_notify Discussed in #3
Made some minor edits during my first testing of it on a Mac mini mid 2011 running OS X 10.11.6. It works very well! Will be testing more tomorrow! |
If you're referring to this then yes. I set it to 10 seconds to allow timing to find devices. |
As an update: I previously was utilizing a supplemental framework to get around some issues I was having with assigning delegate objects. With these changes the framework can be removed. |
Hello, sorry for leaving this hanging for some time. I have been very strapped for time available for spare time coding lately... The changes you propose, does that remove the need for the Does something require any compilation at any stage? I am thinking for building binary wheels on CI system. |
The Xcode project was there to build the corebleak.framework via the makefile in the core bleak folder. But to answer your question, yes, with these changes, neither the framework nor the Xcode project are necessary. I had created this framework for assigning values to read-only properties of objective-c objects before realizing that PyObjC already provides setter functions for this purpose. |
Integrated kevincar/bleak@a7fa367 into bleak and will merge to master and deploy and 0.5.0 to PyPI tomorrow (I cannot test the new changes on a Mac today, so I want to wait for that). |
Implemented new method stumps (due to abstract methods) from #86 in macOS and Windows backends as well. Modified example files to show how Core Bluetooth backend handles addresses. Removed corebleak.py, since I do not think it is needed any more either.
This has now been released in version 0.5.0, which is now available from PyPI. Thank you very much. If you want to, add yourself to the |
Implement CoreBluetooth backend to use for macOS for true cross platform capabilities.
The text was updated successfully, but these errors were encountered: