docs.rs failed to build bluedroid-0.3.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Bluedroid Rust wrapper
This is a Rust wrapper for the Bluedroid Bluetooth stack for ESP32. It allows you to build a GATT server with a declarative API and supports multithreading.
Usage
Declare a characteristic:
let manufacturer_name_characteristic = new
.name
.permissions
.properties
.max_value_length
.on_write
.show_name
.set_value
.build;
Declare a service:
let device_information_service = new
.name
.primary
.characteristic
.build;
Declare a profile and start the server:
let profile = new
.name
.service
.build;
GLOBAL_GATT_SERVER
.lock
.unwrap
.profile
.device_name
.appearance
.advertise_service
.start;
Features
- GATT server
- Advertisement
- Custom name
- Custom appearance
- Multiple applications
- Services
- Declaration
- Advertisement
- Characteristics
- Declaration
- Broadcast
- Read
- Static (by stack)
- Dynamic (by application, with callback)
- Long
- Write
- With response
- Without response
- Long
- Notify
- Indicate
- Descriptors
- Declaration
- Read
- Write
- Encryption
- Advertisement
- GATT client
There are currently no plans to implement the GATT client API. Contributions are welcome.
- BR/EDR
There are currently no plans to implement the Bluetooth Classic API. Contributions are welcome.