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

Question about Characteristic.setValue #99

Description

@audetto

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions