Skip to content

Commit

Permalink
Updated bleak backend to handle updated return type in start_notify c…
Browse files Browse the repository at this point in the history
…allback (#187)
  • Loading branch information
jdpigeon authored Jan 3, 2023
1 parent e9b04bf commit f899ba3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions muselsl/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand All @@ -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",
Expand Down

0 comments on commit f899ba3

Please sign in to comment.