androidbluetooth-lowenergygattcharacteristics

How the onCharacteristicWrite know the status is success in Android ?


I am developing in BLE for Android , I have a question about onCharacteristicWrite.

I know the onCharacteristicWrite will be call and return the status when write value to remote BLE device.

When the onCharacteristicWrite return status is 0 after Gatt.writeCharacteristic, it means write success.

Question:

How the onCharacteristicWrite know the return status is 0 ?? Does remote BLE device will send ACK to Android ??


Solution

  • Yes, the BLE device will send successful write acknowledgement. It is part of the low level Bluetooth Low Energy Specification.