GattServerRequest.ReadCharacteristic


class GattServerRequest.ReadCharacteristic : GattServerRequest


Represents a read characteristic request.

Summary

Public functions

Unit

Notifies the failure for the read request.

Unit

Sends the result for the read request.

Public properties

GattCharacteristic

a characteristic to read

Public functions

sendFailure

Added in 1.0.0-alpha02
fun sendFailure(): Unit

Notifies the failure for the read request.

sendResponse

Added in 1.0.0-alpha02
fun sendResponse(value: ByteArray): Unit

Sends the result for the read request.

Parameters
value: ByteArray

a value of the characteristic

Public properties

characteristic

Added in 1.0.0-alpha02
val characteristicGattCharacteristic

a characteristic to read