From 2c0f5adadcd4a5db425653a0ecbb9ae4d5cced20 Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Tue, 29 Oct 2019 10:02:43 +0100 Subject: [PATCH] py9b/link/bleak: use writes with confirmations This fixes some bluez compatiblity issues and improves connection stability. --- py9b/link/bleak.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py9b/link/bleak.py b/py9b/link/bleak.py index 7e27273..5bf9312 100644 --- a/py9b/link/bleak.py +++ b/py9b/link/bleak.py @@ -105,7 +105,7 @@ class BleakLink(BaseLink): def write(self, data): fut = asyncio.run_coroutine_threadsafe( - self._client.write_gatt_char(_rx_char_uuid, bytearray(data), False), + self._client.write_gatt_char(_rx_char_uuid, bytearray(data), True), self.loop, ) return fut.result(3)