dlech / bleak-winrt Goto Github PK
View Code? Open in Web Editor NEWPython binding for WinRT for Bleak
Home Page: https://pypi.org/project/bleak-winrt
License: MIT License
Python binding for WinRT for Bleak
Home Page: https://pypi.org/project/bleak-winrt
License: MIT License
Windows 11 Pro,
OS build 22000.675,
bleak~=0.14.3,
Bleak-winrt version~=1.1.1
Unable to write into a characteristic, but reading and notifications work fine
I checked through BLE Scanner on Android and BleuIO, writing works fine both ways, so there is an issue with Bleak or WinRT. Device is not receiving anything (I monitor through COM port)
I tried older versions of Bleak-winrt, getting the same error.
Here is a piece of code:
a = await self.client.get_services()
for c in a.characteristics.values():
try:
b = await self.client.write_gatt_char(c, B"123ABC") # Issue is in here
print(b)
except Exception as e:
print("Test error 2:", e)
if "Access Denied" not in str(e):
print("Have a look!", e)
await asyncio.sleep(0.1)
For some reason, the -include
and -exclude
options don't work for cppwinrt.exe
like they do for pywinrt.exe
, so it ends up generating a bunch of files that we don't need.
I can generate bleak_winrt-1.2.0-cp311-cp311-win_amd64.whl file by running "python3 setup.py bdist_wheel" command. How to replace bleak Windows backend with bleak_winrt-1.2.0-cp311-cp311-win_amd64.whl file?
The BluetoothLEAdvertisementReceivedEventArgs.BluetoothAddressType does not seem to be accessible from the Python BluetoothLEAdvertisementReceivedEventArgs
type.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.