CharacteristicWriteRequest
data class CharacteristicWriteRequest(val device: ClientDevice, val requestId: Int, val characteristic: IBluetoothGattCharacteristic, val preparedWrite: Boolean, val responseNeeded: Boolean, val offset: Int, val value: DataByteArray) : ServerGattEvent.CharacteristicEvent
A remote client has requested to write to a local characteristic.
An application must call GattServerAPI.sendResponse to complete the request.
See also
(https://developer.android.com/reference/android/bluetooth/BluetoothGattServerCallback#onCharacteristicWriteRequest(android.bluetooth.BluetoothDevice,%20int,%20android.bluetooth.BluetoothGattCharacteristic,%20boolean,%20boolean,%20int,%20byte[]))
Constructors
Link copied to clipboard
constructor(device: ClientDevice, requestId: Int, characteristic: IBluetoothGattCharacteristic, preparedWrite: Boolean, responseNeeded: Boolean, offset: Int, value: DataByteArray)
Properties
Link copied to clipboard
Characteristic to be written to.
Link copied to clipboard
The remote device that has requested the write operation.
Link copied to clipboard
True, if this write operation should be queued for later execution.
Link copied to clipboard
True, if the remote device requires a response.
Link copied to clipboard
The value the client wants to assign to the characteristic.