Package-level declarations

Types

Link copied to clipboard
object BlueZ

Linux BlueZ helpers for the kmp-ble-bluez JVM backend.

Link copied to clipboard
class BlueZBackend : BleBackend

Linux BlueZ backend, registered through META-INF/services so the portable JVM factories (Scanner { }, Advertisement.toPeripheral(), GattServer { }, Advertiser(), BluetoothAdapter()) use it automatically on Linux.

Link copied to clipboard
class BlueZScanner(configure: ScannerConfig.() -> Unit = {}) : Scanner

Explicit Linux BlueZ Scanner. Equivalent to the portable Scanner { } when kmp-ble-bluez is the active backend, but always uses BlueZ.

Functions

Link copied to clipboard
fun Advertisement.toBlueZPeripheral(): Peripheral

The BlueZ Peripheral for this advertisement, regardless of which backend is active. Uses the D-Bus device path when the advertisement came from a BlueZ scan, otherwise derives it from the adapter and the identifier's MAC address.