Skip to content

moechakucha/btleplug4j

Repository files navigation

btleplug4j

Maven Central Version

Java bindings for the Rust library btleplug.

repositories {
    mavenCentral()
}

dependencies {
    implementation("moe.prwk:btleplug4j:<version>")
}

Build

To build the project you'll need:

  • JDK 22 and onwards (for the FFM API)
  • jextract matching the JDK version
  • Rust
  • Zig (for cross-compilation targeting Linux and macOS)
  • MinGW (for cross-compilation targeting Windows)
  • cargo-zigbuild and cargo-xwin
  • libdbus development files and bluez when on Linux
  • macOS SDK (for cross-compilation targeting macOS)

It's suggested to build this on a Linux host machine.

After you've added the relevant targets via rustup (check build.gradle.kts for target triples), to build the project simply run:

./gradlew build

Licensing

This project is licensed under MIT.

Additionally, this project uses btleplug, which is licensed under BSD 3-Clause.

Please view the license for more info.

About

[sr.ht Mirror] Java bindings for btleplug, the Rust library for cross-platform host-side Bluetooth LE access

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Contributors