Skip to main content
ann
Visitor II
Jul 24, 2019 3:32 PM UTC
Question

BlueNRG2 - which call back? for write characteristic

i am writing an andriod app, i am wondering which call back of BlueNRG2 will respond after the following codes of app?

BluetoothGattService gattService =

bluetooth_gatt.getService(java.util.UUID.fromString(serviceUuid));

BluetoothGattCharacteristic gattChar = gattService

.getCharacteristic(java.util.UUID.fromString(characteristicUuid));

gattChar.setValue(value);

bluetooth_gatt.writeCharacteristic(gattChar);

This topic has been closed for replies.

1 reply

Winfred LU
ST Employee
Jul 26, 2019 8:09 AM UTC

Please try aci_gatt_attribute_modified_event() callback.

Please set the ACI event mask accordingly (ACI_GATT_ATTRIBUTE_MODIFIED_EVENT) in advance.