observe
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
Parameters
bluetoothFormat
the BluetoothFormat to use to convert the ByteArray to the Notification
builder
sets up the observation response to a new Notification
Type Parameters
Notification
the type of Notification to receive from the RemoteCharacteristic
T
the type of the object to bind to