GattServerRequest.ReadCharacteristic


public final class GattServerRequest.ReadCharacteristic extends GattServerRequest


Represents a read characteristic request.

Summary

Public methods

final @NonNull GattCharacteristic

a characteristic to read

final void

Notifies the failure for the read request.

final void
sendResponse(@NonNull byte[] value)

Sends the result for the read request.

Public methods

getCharacteristic

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

a characteristic to read

sendFailure

Added in 1.0.0-alpha02
public final void sendFailure()

Notifies the failure for the read request.

sendResponse

Added in 1.0.0-alpha02
public final void sendResponse(@NonNull byte[] value)

Sends the result for the read request.

Parameters
@NonNull byte[] value

a value of the characteristic