Kotlin Multiplatform Bluetooth

Kotlin Multiplatform BLE libraries, compared

Four ways to reach Bluetooth Low Energy from shared Kotlin code. SimpleBLE runs your commonMain Bluetooth code on Android, iOS, macOS, Windows, and Linux, as a central or a peripheral, and the team that builds it supports your app.

Kober Engineering
InsuLearn
Meta
Fender
Honeywell
Bionic Labs
Sona
SWT
Moon Smart Focus
Lewitt
Medra
Desko
g.tec
IXI
Innovision
Moonlighting Industries
Kober Engineering
InsuLearn
Meta
Fender
Honeywell
Bionic Labs
Sona
SWT
Moon Smart Focus
Lewitt
Medra
Desko
g.tec
IXI
Innovision
Moonlighting Industries
Kober Engineering
InsuLearn
Meta
Fender
Honeywell
Bionic Labs
Sona
SWT
Moon Smart Focus
Lewitt
Medra
Desko
g.tec
IXI
Innovision
Moonlighting Industries
Comparison

How the Kotlin Multiplatform BLE libraries compare

Platforms, roles, and licensing decide which library fits a commercial Kotlin Multiplatform app. This is where each one stands.

How the Kotlin Multiplatform BLE libraries compare
SimpleBLESimpleKtBLEAndroid, iOS, macOS, Windows, LinuxEvery platformC++, Python, Swift, Rust, and moreSource-available (BUSL 1.1); one commercial license per company
KableJUUL LabsAndroid, iOS, macOS, JVM desktop, browserNoKotlin onlyApache 2.0
Blue Falcondev.bluefalconAndroid, iOS, macOS, Windows, Raspberry Pi, browserAndroid, iOS, macOSKotlin onlyApache 2.0
Native platform APIsexpect/actualAndroid, iOS, macOS, Windows, Linux, each with its own APIYes, through each platform's own APIKotlin or Java, Swift, C++/WinRT, D-BusIncluded with each operating system
The options

The Kotlin Multiplatform BLE options, one by one

SimpleBLE

SimpleBLE is a Bluetooth Low Energy library for Windows, macOS, Linux, iOS, and Android. Its Kotlin Multiplatform package, SimpleKtBLE, scans and connects as a central and hosts GATT services as a peripheral from commonMain, with suspend functions and flows. Each target's artifact carries the native library it needs, so nothing compiles during your build. The same library runs in C++, Python, Swift, Rust, and other languages, and commercial customers work directly with the engineers who build it.

Kable

Kable, from JUUL Labs, is a coroutine-based central-role library for Android, Apple platforms, the JVM desktop, and the browser through Web Bluetooth, under the Apache 2.0 license. It has no peripheral role, so an app that advertises or hosts GATT services needs a second Bluetooth stack for that side. SimpleBLE covers both roles with one API.

Blue Falcon

Blue Falcon is a Kotlin Multiplatform library with central engines for Android, iOS, macOS, Windows, Raspberry Pi, and the browser, and a peripheral module for Android, iOS, and macOS, under the Apache 2.0 license. SimpleBLE hosts GATT services on Windows and Linux too, and runs the same library outside Kotlin.

Native platform APIs

Kotlin Multiplatform lets you write expect declarations in commonMain and an actual implementation per target: the Android Bluetooth API, CoreBluetooth on iOS and macOS, and WinRT or BlueZ through native interop on the JVM desktop. It costs nothing in licenses and takes one implementation per platform, each with its own threading, errors, and lifecycle. SimpleBLE is that work, done once and maintained for you.

Get started

Scan, connect, and host from commonMain

SimpleKtBLE uses suspend functions and flows throughout. Add org.simpleble:simplektble to commonMain, and this is the shared code for each step.

import org.simplektble.Adapter

suspend fun scan() {
    val adapter = Adapter.getAdapters().first()

    adapter.scanFor(5000)
    for (peripheral in adapter.scanGetResults()) {
        println("${peripheral.identifier} [${peripheral.address}]")
    }
}
Why SimpleBLE

What SimpleBLE gives your Kotlin Multiplatform app

Platforms

Five platforms, one dependency

Android, iOS, macOS, Windows, and Linux from commonMain.

Roles

Central and peripheral

Scan and connect, or advertise and serve GATT, on every platform.

Kotlin

Coroutines and flows

Suspend functions and flows throughout. Bluetooth never blocks your UI.

Builds

Native libraries included

Every target ships with its native library. Nothing to compile.

Hardware

Dongl on desktop

Plug in a Dongl for a dedicated radio on Windows, macOS, or Linux. Same code.

Support

A direct line to the engineers

Commercial customers work directly with the team that builds SimpleBLE.

Try SimpleBLE in your Kotlin Multiplatform app

Evaluation needs no license. For commercial use, one agreement covers your whole company, with no per-seat, per-device, or royalty fees.

Frequently
asked questions

SimpleBLE runs on Windows and Linux through the JVM target, alongside Android, iOS, and macOS. Kable's JVM target also runs on desktop, and Blue Falcon has engines for Windows and Raspberry Pi.

Yes. SimpleBLE hosts GATT services and advertises on Android, iOS, macOS, Windows, and Linux from shared code. Blue Falcon's peripheral module covers Android, iOS, and macOS. Kable works in the central role.

No. SimpleKtBLE runs in commonMain, so scanning, connections, GATT, and peripheral code are written once. Each platform needs only its permission setup: runtime permissions on Android and a Bluetooth usage description on iOS and macOS.

Add org.simpleble:simplektble to commonMain, then move scanning, connections, and GATT calls one flow at a time. Both libraries use suspend functions and flows, so the shape of your Bluetooth code stays the same.

Yes. SimpleKtBLE is a Kotlin Multiplatform library, so a Compose Multiplatform app calls it from shared code on Android, iOS, and desktop.

SimpleBLE is source-available under the Business Source License 1.1 and free for non-commercial use. Evaluation needs no license. Commercial use needs a license, and one agreement covers your whole company, with no per-seat, per-device, or royalty fees.