You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@pidou46 The documentation is incorrect. You must specify a connection, as the server might have multiple concurrent connections. If you want to automatically send to all connections, use subscription and char.write(..., send_update=True).
Created #728 to fix the documentation (and add a few more things).
Hello,
In the README.md:
https://github.com/micropython/micropython-lib/tree/master/micropython/bluetooth/aioble
it is stated that the notify method take one optional argument:
temp_char.notify(b'optional data')
but if I call it without any argument I get:
TypeError: function takes 2 positional arguments but 1 were given
In server.py the notify method take a connection object as 2nd argument:
def notify(self, connection, data=None):
server.py module wouldn't be able to get the conenction object internally ?
The text was updated successfully, but these errors were encountered: