RxAndroidBle icon indicating copy to clipboard operation
RxAndroidBle copied to clipboard

Explicit write without response to a characteristic

Open rickytribbia opened this issue 2 years ago • 1 comments

Hello everyone, thank you for the great job with this library 🎉

Simple question: is it possible to explicit write without response to a characteristic? Or is the BLE characteristic that has necessarily to explicit only this write type (without response) and the library (or Android sdk) use this one instead of write with response?

I'm asking this question because for a custom firmware update we're trying to achieve better throughput writing some amount of Kbs and we've just tested that using write without response writing type we achieve this goal.

On iOS we can set this write type explicitly (see (https://developer.apple.com/documentation/corebluetooth/cbperipheral/1518747-writevalue)[]) - and it doesn't work if the characteristic value descriptor has not the "write without response" write type defined.

We see that it's possible to set the .writeType property of a BluetoothGattCharacteristic, but trying to retrieve the characteristic from discovered ones and setting this writeType seems to not work; pheraps it's only to set this for Peripheral and not for Central.

Any help would be appreciated, thanks

rickytribbia avatar Jan 28 '22 09:01 rickytribbia

You may retrieve the BluetoothGattCharacteristic and set the write type appropriately.

dariuszseweryn avatar May 28 '22 18:05 dariuszseweryn