Package-level declarations

Types

Link copied to clipboard
class AndroidBleConnection(centralManager: CentralManager, scope: CoroutineScope, tag: String = "BLE") : BleConnection

An Android implementation of BleConnection using Nordic's CentralManager.

Link copied to clipboard
class AndroidBleConnectionFactory(centralManager: CentralManager) : BleConnectionFactory

An Android implementation of BleConnectionFactory.

Link copied to clipboard
class AndroidBleDevice(val peripheral: Peripheral) : BleDevice

An Android implementation of BleDevice that wraps a Nordic Peripheral.

Link copied to clipboard
class AndroidBleScanner(centralManager: CentralManager) : BleScanner

An Android implementation of BleScanner using Nordic's CentralManager.

Link copied to clipboard
class AndroidBleService(val service: RemoteService) : BleService

An Android implementation of BleService that wraps a Nordic RemoteService.

Link copied to clipboard
class AndroidBluetoothRepository(dispatchers: CoroutineDispatchers, processLifecycle: Lifecycle, centralManager: CentralManager, androidEnvironment: AndroidEnvironment) : BluetoothRepository

Android implementation of BluetoothRepository.

Link copied to clipboard
interface BleConnection

Encapsulates a BLE connection to a BleDevice.

Link copied to clipboard

A factory for creating BleConnection instances.

Link copied to clipboard
sealed class BleConnectionState

Represents the state of a BLE connection.

Link copied to clipboard
interface BleDevice

Represents a BLE device.

Link copied to clipboard
interface BleScanner

A scanner for BLE devices.

Link copied to clipboard
interface BleService

Represents a BLE service for commonMain.

Link copied to clipboard

Represents the type of write operation.

Link copied to clipboard

Repository responsible for Bluetooth availability and bonding.

Link copied to clipboard
data class BluetoothState(val hasPermissions: Boolean = false, val enabled: Boolean = false, val bondedDevices: List<BleDevice> = emptyList())

Represents the state of Bluetooth on the device.

Link copied to clipboard

Constants for Meshtastic Bluetooth LE interaction.

Functions

Link copied to clipboard
suspend fun <T> retryBleOperation(count: Int = 3, delayMs: Long = 500, tag: String = "BLE", block: suspend () -> T): T

Retries a BLE operation a specified number of times with a delay between attempts.