GattServerRequest.WriteCharacteristics.Part


public final class GattServerRequest.WriteCharacteristics.Part


A part of write requests.

It represents a partial write request such that value is to be written to a part of characteristic based on offset.

For example, if the [offset] is 2, the first byte of [value] should be written to the third byte of the [characteristic], and the second byte of [value] should be written to the fourth byte of the [characteristic] and so on.

Summary

Public methods

final @NonNull GattCharacteristic

a characteristic to write

final int

an offset of the first octet to be written

final @NonNull byte[]

a value to be written

Public methods

getCharacteristic

Added in 1.0.0-alpha02
public final @NonNull GattCharacteristic getCharacteristic()

a characteristic to write

getOffset

Added in 1.0.0-alpha02
public final int getOffset()

an offset of the first octet to be written

getValue

Added in 1.0.0-alpha02
public final @NonNull byte[] getValue()

a value to be written