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.
Link copied to clipboard
interface RequiresServicesDiscovered<T> : RemoteCharacteristicBinding<T> , RequiresServicesDiscoveredBinding.NonMutating<T>
A RemoteCharacteristicBinding and RequiresServicesDiscoveredBinding.NonMutating that will only bind whenever the RemoteCharacteristic has been discovered.
Functions
Link copied to clipboard
open fun observe(builder: RemoteCharacteristicBinding.ObserveBuilder.NonMutating<T, ByteArray>.() -> Unit)
Sets up observation of a ByteArray from the RemoteCharacteristic
abstract fun <Notification> observe(asValue: ByteArray.() -> Notification, builder: RemoteCharacteristicBinding.ObserveBuilder.NonMutating<T, Notification>.() -> Unit)
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
inline fun <Notification, T> RemoteCharacteristicBinding<T>.observe(bluetoothFormat: BluetoothFormat = BluetoothFormat, noinline builder: RemoteCharacteristicBinding.ObserveBuilder.NonMutating<T, Notification>.() -> Unit)
Sets up observation of a Notification from the RemoteCharacteristic