BlueZ

object BlueZ

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

Properties

Link copied to clipboard

Optional adapter id (for example hci0 or the adapter MAC). Defaults to the first adapter.

Link copied to clipboard
const val BACKEND_ID: String

com.atruedev.kmpble.backend.BleBackend.id of this backend, for -Dkmpble.backend=bluez.

Link copied to clipboard

platformCode when Device1.Connect failed.

Link copied to clipboard

platformCode of a com.atruedev.kmpble.error.ConnectionFailed when the system D-Bus is unreachable.

Link copied to clipboard

platformCode when BlueZ has no object for the device (it was never discovered or was removed).

Link copied to clipboard

platformCode when no BlueZ adapter is present.

Functions

Link copied to clipboard

Best-effort probe: Linux, reachable system D-Bus, and at least one BlueZ adapter. Safe to call on CI; returns false when BlueZ is absent.

Link copied to clipboard

True when running on a Linux operating system.