From a36b6a999517b635e10f078a2d5d4d7e44218162 Mon Sep 17 00:00:00 2001 From: Kevin Davis Date: Wed, 9 Nov 2022 08:45:13 -0500 Subject: [PATCH] Fix CoreBluetooth characteristic init missing without response size Added the max_write_without_response_size to be the BLE MTU. Currently, this value is stored to comply with Bleak Characteristics but is unused on bless. --- bless/backends/corebluetooth/characteristic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bless/backends/corebluetooth/characteristic.py b/bless/backends/corebluetooth/characteristic.py index de2e014..885fe93 100644 --- a/bless/backends/corebluetooth/characteristic.py +++ b/bless/backends/corebluetooth/characteristic.py @@ -73,7 +73,8 @@ async def init(self, service: BlessGATTService): ) ) super(BleakGATTCharacteristicCoreBluetooth, self).__init__( # type: ignore - obj=cb_characteristic + obj=cb_characteristic, + max_write_without_response_size=0x200 ) @property