Replies: 2 comments 2 replies
-
If the characteristic supports it, do a write with response instead of write without response. If the device doesn't support it, then there is no way to wait. |
Beta Was this translation helpful? Give feedback.
-
Thanks @dlech. I changed the call to be with response and now the call blocks until the response and and throws an error in case of a GATT error status, which is what I need. In this case I don't care about the response's value so I am good. Would be nice though for the write function to return the gatt status and response value in case response=True. It will simplify the user's code and will abstract platform differences. |
Beta Was this translation helpful? Give feedback.
-
I have a program that needs to perform a no-response write to a device and exit. What is a good way to wait for the completion of the write operation before existing?
Currently I am doing this but it feels hackish.
Beta Was this translation helpful? Give feedback.
All reactions