Skip to content
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

Explicit write without response to a characteristic #776

Open
rickytribbia opened this issue Jan 28, 2022 · 1 comment
Open

Explicit write without response to a characteristic #776

rickytribbia opened this issue Jan 28, 2022 · 1 comment

Comments

@rickytribbia
Copy link

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

@dariuszseweryn
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants