Skip to main content

Crate webbluetooth_android

Crate webbluetooth_android 

Source
Expand description

Android BLE from pure Rust, with no dependencies.

§License

MIT — Copyright © 2025 Eugene Hauptmann

Modules§

ble
Calling the Android BLE APIs.
bluetooth
The Android BLE APIs, reached through JNI.
dex
A DEX writer, for classes that do not exist until we make them.
jni
JNI, spoken directly.
l2cap
L2CAP channels over BluetoothSocket.
peripheral_backend
The Android peripheral engine: BluetoothGattServer and BluetoothLeAdvertiser.
runtime
Turning a generated DEX into a live class.

Constants§

PACKAGE
The package the generated classes live in.

Functions§

advertise_callback_dex
AdvertiseCallback — advertising.
dex_classes
Every callback class this crate synthesises, as (name, dex).
gatt_callback_dex
BluetoothGattCallback — the GATT client.
gatt_server_callback_dex
BluetoothGattServerCallback — the peripheral role.
scan_callback_dex
ScanCallback — LE discovery.