BluetoothRepository

Repository responsible for Bluetooth availability and bonding.

Inheritors

Properties

Link copied to clipboard
abstract val state: ERROR CLASS: Symbol not found for StateFlow<org/meshtastic/core/ble/BluetoothState>

The current state of Bluetooth on the device.

Functions

Link copied to clipboard
abstract suspend fun bond(device: BleDevice)

Initiates bonding with the given device.

Link copied to clipboard
abstract fun isBonded(address: String): Boolean

Returns true if the given address is bonded.

Link copied to clipboard
abstract fun isValid(bleAddress: String): Boolean

Returns true if the given address is valid.

Link copied to clipboard
abstract fun refreshState()

Refreshes the Bluetooth state.