Skip to main content
ann
Visitor II
July 24, 2019
Question

BlueNRG2 - which call back? for write characteristic

  • July 24, 2019
  • 1 reply
  • 439 views

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
July 26, 2019

Please try aci_gatt_attribute_modified_event() callback.

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