RemoteCharacteristicBinding

Builder for setting up binding to an object T so that it may be changed by a RemoteCharacteristic.

Inheritors

Types

Link copied to clipboard

A RemoteCharacteristicBinding that assumes the RemoteCharacteristic being bound to has been discovered.

Link copied to clipboard

Builder for setting up binding to an object T so that it may be changed when the Notification from a RemoteCharacteristic changed.

Functions

Link copied to clipboard
abstract fun <Trigger> Flow<Trigger>.collectTo(trigger: RemoteAttributeBinding.TriggerResponse<Trigger, T>.() -> Unit)

Collects this Flow and responds to its Trigger

Link copied to clipboard
abstract fun <Trigger> Channel<Trigger>.consumeTo(trigger: RemoteAttributeBinding.TriggerResponse<Trigger, T>.() -> Unit)

Consumes this Channel and responds to its Trigger

Link copied to clipboard

Sets up observation of a ByteArray from the RemoteCharacteristic

open fun <Notification> observe(deserializationStrategy: DeserializationStrategy<Notification>, bluetoothFormat: BluetoothFormat = BluetoothFormat, builder: RemoteCharacteristicBinding.ObserveBuilder.NonMutating<T, Notification>.() -> Unit)

Sets up observation of a Notification from the RemoteCharacteristic

Link copied to clipboard

Sets up observation of a Notification from the RemoteCharacteristic