SimpleBLE

Installation

Install SimpleBLE for C++, C, C#, Python, Java, Kotlin, Swift, Go, Rust, Delphi, Node.js, React Native, Unity or Unreal, with each platform's prerequisites.

SimpleBLE is a family of libraries. Start by choosing the binding that matches your application, then install the platform dependencies that binding needs.

Choose a binding

BindingLanguageStatusBest fitInstall path
SimpleBLEC++Production-readyNative desktop, mobile native code, shared librariesCMake from source
SimpleCBLECProduction-readyC applications, FFI, language bridgesCMake from source
SimpleSharpBLEC# / .NETProduction-readyDesktop, mobile, and MAUI apps; test and industrial toolingNuGet
SimplePyBLEPythonProduction-readyScripts, tools, data pipelines, testsPyPI or local source
SimpleJavaBLEJavaProduction-readyJVM desktop apps and integrationsMaven Central or local source
SimpleGoBLEGoProduction-readyDesktop apps, tools, and servicesGo modules
SimpleRsBLERustProduction-readyRust applications and async workflowscrates.io or local path
SimpleJSBLEJavaScript / TypeScriptProduction-readyNode.js and Electron appsnpm
SimpleRnBLEJavaScript / TypeScriptProduction-readyReact Native apps on iOS and Androidnpm
SimpleKtBLEKotlin MultiplatformProduction-readyShared Kotlin code for Android, iOS, and desktopMaven Central
SimpleSwiftBLESwiftProduction-readyiOS, iPadOS, macOS, and Mac Catalyst appsSwift Package Manager
SimpleDartBLEDartProduction-readyDart programs on Windows, macOS, and Linuxpub.dev
SimpleFltBLEFlutterProduction-readyFlutter apps on Android, iOS, and desktoppub.dev
SimpleDelphiBLEDelphi / Free PascalProduction-readyVCL, FMX, and Lazarus apps; test and industrial toolingBoss or GitHub release
SimpleDroidBLEKotlin / AndroidProduction-readyAndroid apps written in KotlinMaven Central or local composite build
SimpleBLE for UnrealUnreal Engine / Blueprint / C++Fab pluginUnreal projects that need BLE device integrationFab or project plugin
SimpleBLE for UnityUnity / C#DevelopmentUnity projects on Windows, macOS, Linux, iOS, and AndroidAsset Store package
SimpleBluezC++Lower-level utilityDirect BlueZ integration on LinuxCMake from source
SimpleDBusC++Lower-level utilityDBus object model workCMake from source
SimpleAIBLEPython / AI agentsUtility packageLocal BLE tools for agents and HTTP/MCP workflowsuv or PyPI

Platform prerequisites

PlatformRequired setup
LinuxBlueZ, DBus development headers, and permission to access the system Bluetooth stack. On Ubuntu, install libdbus-1-dev.
WindowsWindows 10 or newer, Windows SDK 10.0.22621.0 or newer, and a C++20-capable MSVC toolchain such as Visual Studio 2019 16.11 or newer.
macOSmacOS 15.0 or newer and Xcode Command Line Tools. Packaged apps need Bluetooth usage strings in Info.plist.
iOSiOS 15.8 or newer and the normal CoreBluetooth permission flow.
AndroidAPI 31 or newer, Android Studio, Android NDK, manifest permissions, and runtime Bluetooth permission requests.

See Bluetooth Permissions for the OS-specific permission details that are easy to miss on first adoption.

Install commands

Build and install the C++ library from source:

git clone https://github.com/simpleble/simpleble.git
cd simpleble

cmake -S simpleble -B build_simpleble
cmake --build build_simpleble -j
cmake --install build_simpleble --prefix "$PWD/install_simpleble"

Consume the installed package from your own CMake project:

find_package(simpleble REQUIRED CONFIG)
target_link_libraries(your_app PRIVATE simpleble::simpleble)

For a local vendored build, add the library directly:

add_subdirectory(path/to/simpleble/simpleble ${CMAKE_BINARY_DIR}/simpleble)
target_link_libraries(your_app PRIVATE simpleble::simpleble)

Build and install the C wrapper from source:

git clone https://github.com/simpleble/simpleble.git
cd simpleble

cmake -S simplecble -B build_simplecble
cmake --build build_simplecble -j
cmake --install build_simplecble --prefix "$PWD/install_simplecble"

Consume the installed package from CMake:

find_package(simplecble REQUIRED CONFIG)
target_link_libraries(your_app PRIVATE simplecble::simplecble)

If you are compiling manually, include simplecble headers and link both simplecble and the platform Bluetooth dependencies.

Install SimpleSharpBLE from NuGet:

dotnet add package SimpleSharpBLE

Requires .NET 10. See SimpleSharpBLE Usage for platform requirements and a first scan example.

Install the Python binding from PyPI:

pip install simplepyble

Linux users also need DBus headers:

sudo apt-get install libdbus-1-dev

Install from a local checkout when developing SimplePyBLE itself:

git clone https://github.com/simpleble/simpleble.git
cd simpleble
pip install .

Add SimpleJavaBLE to your Gradle dependencies:

dependencies {
    implementation("org.simpleble:simplejavable:<version>")
}

The Maven artifact bundles the supported Windows, macOS, and Linux native libraries. See SimpleJavaBLE Usage for source builds and native library loading options.

Install the Go binding with Go 1.25 or newer:

go get github.com/simpleble/simplegoble
go build ./...

See SimpleGoBLE Usage for platform requirements and client examples.

Add the Rust crate:

cargo add simplersble

Linux users need DBus headers before building:

sudo apt-get install libdbus-1-dev

If you want to use a local checkout while developing:

[dependencies]
simplersble = { path = "path/to/simpleble" }

Install the Node.js package with Node.js 22 or newer:

npm install simplejsble

The package includes the native addon for Windows, macOS, and Linux on x64 and arm64, so nothing is compiled during installation. See SimpleJSBLE Usage for Electron and platform notes.

Install the React Native package and Nitro Modules, which it is built on:

npm install simplernble react-native-nitro-modules
cd ios && pod install

The package includes SimpleBLE prebuilt for iOS, and compiles it with the NDK in your app's Android build. Apps target iOS 15.8 and Android API 31 or newer, declare Bluetooth usage in Info.plist, and request the Android permissions at runtime; see SimpleRnBLE Usage for permissions and Expo.

Add SimpleKtBLE to the shared module of your project, with Kotlin 2.3 or newer:

kotlin {
    sourceSets {
        commonMain.dependencies {
            implementation("org.simpleble:simplektble:<version>")
        }
    }
}

Each target's artifact includes the native SimpleBLE library it needs, for Android, iOS, macOS, Windows, and Linux, so nothing is compiled during your build. See SimpleKtBLE Usage for permissions and supported targets.

Add SimpleSwiftBLE with Swift Package Manager, with Swift 6.0 (Xcode 16) or newer. In Xcode, choose File > Add Package Dependencies, enter https://github.com/simpleble/simpleswiftble, and add the SimpleSwiftBLE library to your target. In a Package.swift:

dependencies: [
    .package(url: "https://github.com/simpleble/simpleswiftble", from: "<version>")
],
targets: [
    .target(name: "MyApp", dependencies: [.product(name: "SimpleSwiftBLE", package: "simpleswiftble")])
]

The package includes SimpleBLE prebuilt for iOS, macOS, and Mac Catalyst, so only the Swift layer compiles with your app. See SimpleSwiftBLE Usage for permissions and supported platforms.

Add SimpleDartBLE to your Dart program, with Dart 3.10 or newer:

dart pub add simpledartble

The package includes the native SimpleBLE library for Windows, macOS, and Linux, so nothing is compiled during your build. See SimpleDartBLE Usage for permissions.

Add SimpleFltBLE to your Flutter app, with Flutter 3.38 or newer:

flutter pub add simplefltble

The package includes the native SimpleBLE library for Android, iOS, macOS, Windows, and Linux, so nothing is compiled during your build. See SimpleFltBLE Usage for app setup and permissions.

Install SimpleDelphiBLE with Boss, for Delphi 11 or newer or Free Pascal 3.2.2 or newer:

boss install github.com/simpleble/simpledelphible

Or download a release and add its source folder to your search path. Both include the native SimpleBLE library for Windows, macOS, and Linux; deploy the one for your target with your application. See SimpleDelphiBLE Usage for deployment and Free Pascal settings.

Add SimpleDroidBLE to your app module:

dependencies {
    implementation("org.simpleble:simpledroidble:<version>")
}

For a local checkout, include the library before include(":app"):

includeBuild("path/to/simpleble/simpledroidble") {
    dependencySubstitution {
        substitute(module("org.simpleble:simpledroidble")).using(project(":simpledroidble"))
    }
}

include(":app")

The app must also declare and request Bluetooth permissions at runtime.

In Unity's Package Manager, select My Assets, find SimpleBLE for Unity, then download and import it. For a supplied .unitypackage, use Assets > Import Package > Custom Package. Use Unity 6.3 LTS or 6.6.

See SimpleBLE for Unity Installation for assembly references and Platform notes for Android settings.

Install with uv:

uv tool install simpleaible

Or with pip:

pip install simpleaible

Then run the MCP server:

simpleaible

See MCP Server and HTTP Server for agent and HTTP workflows.

Verify the install

The fastest smoke test is to scan for nearby devices:

  • C++, C, Python, Java, Rust, Node.js, React Native, Kotlin Multiplatform, Swift, Dart, Delphi, Android, Unreal, and Unity users can start with Quickstart.
  • C# users can start with the scan example in SimpleSharpBLE Usage.
  • CMake users can build the repository examples from SimpleBLE Examples or SimpleCBLE Examples.
  • Python users can run the examples under examples/simplepyble.
  • Rust users can run the examples under examples/simplersble.
  • Android users can run the example app under examples/simpleble-android.

On this page