triggerRead

Responds to a Trigger to cause the RemoteAttribute to be read.

Parameters

asValue

maps the ByteArray received from the GattResponse.ReadSuccess to the Response that will be returned.

builder

sets up the response to a triggered read using a ReadBuilder.NonMutating

Type Parameters

Response

the type of Response that will be returned when the RemoteAttribute is read.


open fun <Response> triggerRead(deserializationStrategy: DeserializationStrategy<Response>, bluetoothFormat: BluetoothFormat = BluetoothFormat, unitBuilder: RemoteAttributeBinding.ReadBuilder.NonMutating<T, Trigger, Response>.() -> Unit)

Responds to a Trigger to cause the RemoteAttribute to be read.

Parameters

deserializationStrategy

the DeserializationStrategy to map the ByteArray received from the GattResponse.ReadSuccess to the Response that will be returned.

bluetoothFormat

the BluetoothFormat to use for deserialization.

unitBuilder

sets up the response to a triggered read using a UnitReadBuilder.NonMutating

Type Parameters

Response

the type of Response that will be returned when the RemoteAttribute is read.


Responds to a Trigger to cause the RemoteAttribute to be read.

Parameters

builder

sets up the response to a triggered read using a ReadBuilder.NonMutating

Type Parameters

Trigger

the type of Trigger that will cause the RemoteAttribute to be read.