DotNet-BlueZ icon indicating copy to clipboard operation
DotNet-BlueZ copied to clipboard

Write to characteristic with response?

Open hansmbakker opened this issue 4 years ago • 1 comments

I see that in the WriteValueAsync method you can pass an options dictionary to write the value and await a response.

The required options dictionary should contain type = request for that (my reference is https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/gatt-api.txt#n99)

How can I read the response / see whether the write was succesful? The WriteValueAsync task does not return a value directly.

hansmbakker avatar Jan 31 '21 13:01 hansmbakker

It's a bit late, but I've been having some of the same issues, which I talked about here: https://github.com/hashtagchris/DotNet-BlueZ/issues/8#issuecomment-991858139

Maybe something there can help with your project?

Caffiendish avatar Dec 12 '21 09:12 Caffiendish