Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Question about Characteristic.setValue #99

Open
audetto opened this issue Mar 22, 2019 · 0 comments
Open

Question about Characteristic.setValue #99

audetto opened this issue Mar 22, 2019 · 0 comments

Comments

@audetto
Copy link

audetto commented Mar 22, 2019

I have used this app to receive MID messages from an iOS app.

I am now trying to send messages and I am struggling to understand some of the logic.
When I call BluetoothGattCharacteristic.setValue(), this only sets the local value, which only goes to the other side after they have tried to read it.

So one can call BluetoothGattServer.notifyCharacteristicChanged() to suggest a read operation.

So, my question is: the only way to be sure the data has been read (before I can write more), is to wait for the next BluetoothGattServerCallback.onCharacteristicReadRequest() call? Is it the way it is supposed to work?

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

No branches or pull requests

1 participant