David Lechner
David Lechner
I made the required changes to get this merged. Thanks for the contribution!
We are actually already monitoring this in CoreBluetooth: https://github.com/hbldh/bleak/blob/9ff5ed8ccbb0493e2994a0bbfe9ebf26810878fb/bleak/backends/corebluetooth/CentralManagerDelegate.py#L178-L195 And the suggested exception is already implemented: https://github.com/hbldh/bleak/blob/1d6c4031790abed4efe7008c36c8d9b1861856db/bleak/backends/corebluetooth/discovery.py#L18-L29 https://github.com/hbldh/bleak/blob/9ff5ed8ccbb0493e2994a0bbfe9ebf26810878fb/bleak/backends/corebluetooth/scanner.py#L42-L46 We should also revisit the use of `wait_for_powered_on()` in CoreBluetooth when we...
`write_gatt_char` by default does write without response, which is limited to the MTU size - 3 bytes. Maybe with btstack it did write with response or just took care of...
WinRT docs are here: https://docs.microsoft.com/en-us/uwp/api/windows.devices.bluetooth.genericattributeprofile?view=winrt-20348 Bleak WinRT code is here: https://github.com/hbldh/bleak/tree/develop/bleak/backends/winrt Bleak only does write with response and write without response and not prepared writes, authenticated writes, etc. since as...
According to the Bluetooth spec the max attribute value size is 512 bytes (for write with response), so writing 2K at one go is not possible. We recently added a...
Did you clone the entire source code repository or only that example directory? The full source code directory is needed.
Python is an interpreted language, so it can be a bit slow to start with, plus the bridge between Python and the WinRT API is probably not the most efficient....
Closing due to insufficient feedback (logs).
I would try logging Bluetooth packets to see if the device really is sending an empty response.
closing due to lack of feedback (logs)