triggerWrite

Responds to a ByteArray to write it to the RemoteAttribute.

Parameters

builder

sets up the response to a triggered write using a WriteBuilder.NonMutating

Type Parameters

T

the type of the object to bind to


inline fun <Trigger, Data, T> RemoteAttributeBinding.TriggerResponse<Trigger, T>.triggerWrite(bluetoothFormat: BluetoothFormat = BluetoothFormat, noinline mapper: Trigger.() -> Data, noinline builder: RemoteAttributeBinding.WriteBuilder.NonMutating<T, Trigger>.() -> Unit)

Responds to a Trigger to have Data written to the RemoteAttribute.

Parameters

bluetoothFormat

the BluetoothFormat to use for serialization.

mapper

maps the Trigger to the Data to write.

builder

sets up the response to a triggered write using a WriteBuilder.NonMutating

Type Parameters

Trigger

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

Data

the type of data to write to the RemoteAttribute.

T

the type of the object to bind to


Consumes Trigger from a Channel to write it to the RemoteAttribute.

Parameters

bluetoothFormat

the BluetoothFormat to use for serialization.

builder

sets up the response to a triggered write using a WriteBuilder.NonMutating

Type Parameters

Trigger

the type of data to write to the RemoteAttribute.

T

the type of the object to bind to