Skip to content

About

BLE Client plugin for tauri

Resources

Stars

229 stars

Watchers

2 watching

Forks

Repository files navigation

blec

A cross platform BLE client for rust, with a Tauri plugin and Dioxus hooks built on it.

Crate Description
crates/blec The BLE client itself: handler, models, platform backends, mock. Host agnostic.
crates/tauri-plugin-blec Tauri plugin wrapping blec, with the @mnlphlp/plugin-blec JavaScript API.
crates/dioxus-blec Dioxus hooks and signals on blec; carries the android permissions so dx merges them.

On Linux, macOS, Windows and iOS the backend is btleplug; Android has its own backend.

Which one do I want?

  • Tauri app → tauri-plugin-blec (it re-exports all of blec, so you do not need both).
  • Dioxus app → dioxus-blec (same: re-exports blec, and no android manifest setup).
  • Any other rust app (egui, a CLI, a daemon) → blec.

Examples

Development

cargo test --workspace                 # handler tests through the mock backend
cargo check --workspace --features tauri-plugin-blec/mock
cargo check --workspace --target aarch64-linux-android

The examples are standalone crates with their own lockfiles and are not workspace members.

License

MIT or Apache-2.0, at your option.

About

BLE Client plugin for tauri

Resources

Stars

229 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages