-
Notifications
You must be signed in to change notification settings - Fork 1k
aioble.BaseClientCharacteristic.write() ignores response=None parameter #983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If you don't want to use write-with-response, why don't you use |
Thanks @ekspla, I think passing Your workaround also doesn't fix what looks like an easy to fix bug in the aioble code (unless I am hallucinating a problem). |
There is no meaning in That being said, I am not sure which one of the two cases is correct/favourable I understood that the original behaviour was not favourable to you, |
Hi @ekspla, you're right. I had misread the I'll close this issue. |
(https://github.com/micropython/micropython-lib/blob/master/micropython/bluetooth/aioble/aioble/client.py#273)
The comment says to 'default the response arg to true if we only support write-with-response' but shouldn't the code line be as below:
response = (p & _FLAG_WRITE_NO_RESPONSE) and not (p & _FLAG_WRITE)
The consquence (I think) is quite serious as all writes will wait for a response, even if none is requested, which can cause serious delays, problems with timings, etc.
The text was updated successfully, but these errors were encountered: