Closed dimonoid closed 2 years ago
This looks like you are using Bleak rather than using bleak-winrt
directly, so you should post issues at https://github.com/hbldh/bleak instead. Even better, use https://github.com/hbldh/bleak/discussions instead of issues unless you are 90% certain there is a bug in Bleak.
It also looks like you are trying to write to every single characteristic on the device, but not all characteristics can be written, so you get an error. Just pick one characteristic and write to it.
Correct, I try to write to all of them, but none of them are successful. Error is always the same, "Access Denied" to ones which don't have writing properties, but returns successfully "None" for properties which should be writable.
But absolutely nothing goes through to the device.
Solved
I had to use "response=True", otherwise remote device wasn't receiving anything for some reason (even though I don't need confirmation that write request is successful). Also activated response on device side.
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: