on Characteristic Write
open override fun onCharacteristicWrite(gatt: BluetoothGatt, characteristic: BluetoothGattCharacteristic, status: Int)
Called when a characteristic write operation completes.
This callback is invoked after BluetoothGatt.writeCharacteristic completes. Note: For write types BluetoothGattCharacteristic.WRITE_TYPE_NO_RESPONSE, this callback may still be invoked but with less reliability.
Parameters
gatt
The BluetoothGatt instance for the connection.
characteristic
The BluetoothGattCharacteristic that was written to.
status
BluetoothGatt.GATT_SUCCESS if the write completed successfully, or an error code if the write failed.
See also
Connection State Machine. handle Characteristic Write