value

Gets a (Flow of) the ByteArray value from a Flow of an RemoteCharacteristic This method will automatically subscribe/unsubscribe to the RemoteCharacteristic when the Flow is collected

Return

the Flow of the ByteArray value of the RemoteCharacteristic in the given Flow


fun <T> Flow<RemoteCharacteristic?>.value(deserializationStrategy: DeserializationStrategy<T>, bluetoothFormat: BluetoothFormat = BluetoothFormat): Flow<T>

Gets a (Flow of) T value from a Flow of an RemoteCharacteristic This method will automatically subscribe/unsubscribe to the RemoteCharacteristic when the Flow is collected

Return

the Flow of the T value of the RemoteCharacteristic in the given Flow

Parameters

deserializationStrategy

the DeserializationStrategy to use to deserialize the ByteArray to T

bluetoothFormat

the BluetoothFormat to use to deserialize the ByteArray to T

Type Parameters

T

the type of the data to receive


inline fun <T> Flow<RemoteCharacteristic?>.value(bluetoothFormat: BluetoothFormat = BluetoothFormat): Flow<T>

Gets a (Flow of) T value from a Flow of an RemoteCharacteristic This method will automatically subscribe/unsubscribe to the RemoteCharacteristic when the Flow is collected

Return

the Flow of the T value of the RemoteCharacteristic in the given Flow

Parameters

bluetoothFormat

the BluetoothFormat to use to deserialize the ByteArray to T

Type Parameters

T

the type of the data to receive


Gets a (Flow of) the ByteArray value from a RemoteCharacteristic This method will automatically subscribe/unsubscribe to the RemoteCharacteristic when the Flow is collected

Return

the Flow of the ByteArray value of the RemoteCharacteristic


fun <T> RemoteCharacteristic.value(deserializationStrategy: DeserializationStrategy<T>, bluetoothFormat: BluetoothFormat = BluetoothFormat): Flow<T>

Gets a (Flow of) T value from a RemoteCharacteristic This method will automatically subscribe/unsubscribe to the RemoteCharacteristic when the Flow is collected

Return

the Flow of the T value of the RemoteCharacteristic

Parameters

deserializationStrategy

the DeserializationStrategy to use to deserialize the ByteArray to T

bluetoothFormat

the BluetoothFormat to use to deserialize the ByteArray to T

Type Parameters

T

the type of the data to receive


inline fun <T> RemoteCharacteristic.value(bluetoothFormat: BluetoothFormat = BluetoothFormat): Flow<T>

Gets a (Flow of) T value from a RemoteCharacteristic This method will automatically subscribe/unsubscribe to the RemoteCharacteristic when the Flow is collected

Return

the Flow of the T value of the RemoteCharacteristic

Parameters

bluetoothFormat

the BluetoothFormat to use to deserialize the ByteArray to T

Type Parameters

T

the type of the data to receive