This is a Rust wrapper for the NimBLE Bluetooth stack for ESP32, forked from https://github.com/taks/esp32-nimble.
It is tested exclusively on an Adafruit ESP32 Feather board, but theoretically should work on any ESP32 board.
You must be in a project using esp-idf-sys
with std lib, see this template to get started:
cargo generate https://github.com/esp-rs/esp-idf-template cargo
Add below settings to your project"s sdkconfig.defaults
.
CONFIG_BT_ENABLED=y
CONFIG_BT_BLE_ENABLED=y
CONFIG_BT_BLUEDROID_ENABLED=n
CONFIG_BT_NIMBLE_ENABLED=y
See examples for usage.
- GATT server
- Advertisement
- Services
- Characteristics
- Read
- Write
- Notify
- Indicate
- Descriptors
- Read
- Write
- Encryption
- GATT client
- Scan
- Services
- Characteristics
- Read
- Write
- Notify
- Indicate
- Descriptors
- Read
- Write
- Encryption