From f899ba3b7e8c54bb73630f478e114d724bf715f0 Mon Sep 17 00:00:00 2001 From: Dano Morrison Date: Tue, 3 Jan 2023 11:44:23 -0800 Subject: [PATCH] Updated bleak backend to handle updated return type in start_notify callback (#187) --- muselsl/backends.py | 4 ++-- setup.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/muselsl/backends.py b/muselsl/backends.py index 1f3c743..7045cf5 100644 --- a/muselsl/backends.py +++ b/muselsl/backends.py @@ -59,7 +59,7 @@ def char_write_handle(self, value_handle, value, wait_for_response=True, timeout bytearray(value), wait_for_response)) def subscribe(self, uuid, callback=None, indication=False, wait_for_response=True): - def wrap(declaration_handle, data): - value_handle = declaration_handle + 1 + def wrap(gatt_characteristic, data): + value_handle = gatt_characteristic.handle + 1 callback(value_handle, data) _wait(self._client.start_notify(uuid, wrap)) diff --git a/setup.py b/setup.py index bc90077..1b371a6 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ def copy_docs(): setup( name="muselsl", - version="2.2.1", + version="2.2.2", description="Stream and visualize EEG data from the Muse headset.", keywords="muse lsl eeg ble neuroscience", url="https://github.com/alexandrebarachant/muse-lsl/", @@ -40,7 +40,7 @@ def copy_docs(): long_description_content_type='text/markdown', install_requires=[ "bitstring", - "bleak", + "bleak>=0.18.0", "pygatt", "pandas", "scikit-learn",