characteristic
abstract fun characteristic(uuid: UUID, binding: RemoteCharacteristicBinding.EnsuresServicesAvailable<T>.() -> Unit)
Binds the object to the RemoteCharacteristic at a given UUID.
Parameters
uuid
the UUID of the RemoteCharacteristic to bind to
binding
the RemoteCharacteristicBinding.EnsuresServicesAvailable set up binding to the RemoteCharacteristic
Throws
if the RemoteCharacteristic is not found
open fun characteristic(uuidString: String, binding: RemoteCharacteristicBinding.EnsuresServicesAvailable<T>.() -> Unit)
Binds the object to the RemoteCharacteristic at a given UUID.
Parameters
uuidString
the string of the UUID of the RemoteCharacteristic to bind to
binding
the RemoteCharacteristicBinding.EnsuresServicesAvailable set up binding to the RemoteCharacteristic
Throws
if the RemoteCharacteristic is not found
if the UUID is not valid