cancel
Showing results for 
Search instead for 
Did you mean: 

BlueNRG2 - which call back? for write characteristic

ann
Associate II

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);

1 REPLY 1
Winfred LU
ST Employee

Please try aci_gatt_attribute_modified_event() callback.

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