writableAlwaysSuccess
Makes this LocalCharacteristic writable by a com.splendo.kaluga.bluetooth.ConnectedDevice and always responds with GattResponse.WriteSuccess Cannot be called if writable has been called before
Parameters
the CharacteristicProperty.Writable of the characteristic. Must not be empty
true if reading from the characteristic should be encrypted. This will result in Permission.WRITE_ENCRYPTION_REQUIRED. Otherwise will add Permission.WRITABLE
the function to call when reading from the characteristic. This contains the com.splendo.kaluga.bluetooth.ConnectedDevice, and the T to write. If the data being written is split over multiple offsets, this will only be called when the data can be fully deserialized
Type Parameters
the type of the data being written
Makes this LocalDescriptor writable by a com.splendo.kaluga.bluetooth.ConnectedDevice and always responds with GattResponse.WriteSuccess Cannot be called if LocalDescriptor.DSL.writable or LocalDescriptor.DSL.writableAlwaysSuccess has been called before
Parameters
true if reading from the descriptor should be encrypted. This will result in LocalCharacteristic.Permission.WRITE_ENCRYPTION_REQUIRED. Otherwise will add LocalCharacteristic.Permission.WRITABLE
the function to call when reading from the descriptor. This contains the com.splendo.kaluga.bluetooth.ConnectedDevice, and the T to write. If the data being written is split over multiple offsets, this will only be called when the data can be fully deserialized
Type Parameters
the type of the data being written