Package-level declarations

Functions

Link copied to clipboard
suspend fun ConnectableDevice.characteristic(serviceUUID: String, characteristicUUID: String): RemoteCharacteristic

The RemoteCharacteristic for serviceUUID/characteristicUUID of this ConnectableDevice, suspending until available.

suspend fun Flow<ConnectableDevice?>.characteristic(serviceUUID: String, characteristicUUID: String): RemoteCharacteristic

Provides access to RemoteCharacteristic by service and characteristic string uuids. The method will suspend if characteristic is not available.

Link copied to clipboard
fun ConnectableDevice.characteristicFlow(serviceUUID: String, characteristicUUID: String): Flow<RemoteCharacteristic>

The Flow of the RemoteCharacteristic for serviceUUID/characteristicUUID of this ConnectableDevice. Only emits after services have been discovered.

fun Flow<ConnectableDevice?>.characteristicFlow(serviceUUID: String, characteristicUUID: String): Flow<RemoteCharacteristic>

Provides access to RemoteCharacteristic's flow by service and characteristic string uuids. Only emits after services have been discovered.

Link copied to clipboard
suspend fun ConnectableDevice.characteristicOrNull(serviceUUID: String, characteristicUUID: String): RemoteCharacteristic?

The RemoteCharacteristic for serviceUUID/characteristicUUID of this ConnectableDevice, or null if not available.

suspend fun Flow<ConnectableDevice?>.characteristicOrNull(serviceUUID: String, characteristicUUID: String): RemoteCharacteristic?

Provides access to RemoteCharacteristic by service and characteristic string uuids or null if not available.

Link copied to clipboard
fun ConnectableDevice.characteristicOrNullFlow(serviceUUID: String, characteristicUUID: String): Flow<RemoteCharacteristic?>

The Flow of the RemoteCharacteristic for serviceUUID/characteristicUUID of this ConnectableDevice, or null if not available.

fun Flow<ConnectableDevice?>.characteristicOrNullFlow(serviceUUID: String, characteristicUUID: String): Flow<RemoteCharacteristic?>

Provides access to RemoteCharacteristic's flow by service and characteristic string uuids. Emits null if the characteristic cannot be found.

Link copied to clipboard
fun ConnectableDevice.dataFlow(serviceUUID: String, characteristicUUID: String): Flow<ByteArray>

The Flow of the ByteArray value of the RemoteCharacteristic for serviceUUID/characteristicUUID of this ConnectableDevice. Only emits after services have been discovered.

fun Flow<ConnectableDevice?>.dataFlow(serviceUUID: String, characteristicUUID: String): Flow<ByteArray>

Provides access to device data flow by service and characteristic string uuids. Only emits after services have been discovered.

inline fun <T> ConnectableDevice.dataFlow(serviceUUID: String, characteristicUUID: String, deserializationStrategy: DeserializationStrategy<T>, bluetoothFormat: BluetoothFormat = BluetoothFormat): Flow<T>

The Flow of the T value of the RemoteCharacteristic for serviceUUID/characteristicUUID of this ConnectableDevice. Only emits after services have been discovered.

inline fun <T> Flow<ConnectableDevice?>.dataFlow(serviceUUID: String, characteristicUUID: String, deserializationStrategy: DeserializationStrategy<T>, bluetoothFormat: BluetoothFormat = BluetoothFormat): Flow<T>

Provides access to device data flow T by service and characteristic string uuids. Only emits after services have been discovered.

Link copied to clipboard
fun ConnectableDevice.dataOrEmptyFlow(serviceUUID: String, characteristicUUID: String): Flow<ByteArray>

The Flow of the ByteArray value of the RemoteCharacteristic for serviceUUID/characteristicUUID of this ConnectableDevice. Emits an empty ByteArray if not available.

fun Flow<ConnectableDevice?>.dataOrEmptyFlow(serviceUUID: String, characteristicUUID: String): Flow<ByteArray>

Provides access to device data flow by service and characteristic string uuids. Emits and empty ByteArray if the service cannot be found.

Link copied to clipboard
inline fun <T> ConnectableDevice.dataOrNullFlow(serviceUUID: String, characteristicUUID: String, deserializationStrategy: DeserializationStrategy<T>, bluetoothFormat: BluetoothFormat = BluetoothFormat): Flow<T?>

The Flow of the T value of the RemoteCharacteristic for serviceUUID/characteristicUUID of this ConnectableDevice. Emits null if not available.

inline fun <T> Flow<ConnectableDevice?>.dataOrNullFlow(serviceUUID: String, characteristicUUID: String, deserializationStrategy: DeserializationStrategy<T>, bluetoothFormat: BluetoothFormat = BluetoothFormat): Flow<T?>

Provides access to device data flow T by service and characteristic string uuids. Emits null if the descriptor cannot be found.

Link copied to clipboard
suspend fun ConnectableDevice.descriptor(serviceUUID: String, characteristicUUID: String, descriptorUUID: String): RemoteDescriptor
suspend fun Flow<ConnectableDevice?>.descriptor(serviceUUID: String, characteristicUUID: String, descriptorUUID: String): RemoteDescriptor

Provides access to RemoteDescriptor by service, characteristic and descriptor string uuids. The method will suspend if descriptor is not available.

Link copied to clipboard
fun ConnectableDevice.descriptorFlow(serviceUUID: String, characteristicUUID: String, descriptorUUID: String): Flow<RemoteDescriptor>

The Flow of the RemoteDescriptor for serviceUUID/characteristicUUID/descriptorUUID of this ConnectableDevice. Only emits after services have been discovered.

fun Flow<ConnectableDevice?>.descriptorFlow(serviceUUID: String, characteristicUUID: String, descriptorUUID: String): Flow<RemoteDescriptor>

Provides access to RemoteDescriptor's flow by service, characteristic, and descriptor string uuids. Only emits after services have been discovered.

Link copied to clipboard
fun ConnectableDevice.descriptorOrNullFlow(serviceUUID: String, characteristicUUID: String, descriptorUUID: String): Flow<RemoteDescriptor?>

The Flow of the RemoteDescriptor for serviceUUID/characteristicUUID/descriptorUUID of this ConnectableDevice, or null if not available.

fun Flow<ConnectableDevice?>.descriptorOrNullFlow(serviceUUID: String, characteristicUUID: String, descriptorUUID: String): Flow<RemoteDescriptor?>

Provides access to RemoteDescriptor's flow by service, characteristic, and descriptor string uuids. Emits null if the descriptor cannot be found.

Link copied to clipboard
suspend fun ConnectableDevice.service(serviceUUID: String): RemoteService

The RemoteService for serviceUUID of this ConnectableDevice, suspending until services have been discovered.

suspend fun Flow<ConnectableDevice?>.service(serviceUUID: String): RemoteService

Provides access to RemoteService by service string uuids. The method will suspend until services have been discovered.

Link copied to clipboard

The Flow of the RemoteService for serviceUUID of this ConnectableDevice. Only emits after services have been discovered.

fun Flow<ConnectableDevice?>.serviceFlow(serviceUUID: String): Flow<RemoteService>

Provides access to a RemoteService by service string uuids. Only emits after services have been discovered.

Link copied to clipboard

The RemoteService for serviceUUID of this ConnectableDevice, or null if not available.

suspend fun Flow<ConnectableDevice?>.serviceOrNull(serviceUUID: String): RemoteService?

Provides access to RemoteService by service and characteristic string uuids or null if not available.

Link copied to clipboard

The Flow of the RemoteService for serviceUUID of this ConnectableDevice, or null if not available.

fun Flow<ConnectableDevice?>.serviceOrNullFlow(serviceUUID: String): Flow<RemoteService?>

Provides access to a RemoteService by service string uuids. Emits null if the service cannot be found.