Skip to content

ActuallyHappening/SmilePal-ESP32-BLE-rs

 
 

Repository files navigation

NimBLE Rust wrapper for ESP32

Bluetooth Low Energy (BLE) for ESP32 using ESP-IDF-SYS (std lib required)

OLD badges from fork: crates.io build License Documentation

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.

Usage

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.

Features

  • 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

About

A wrapper for the ESP32 NimBLE Bluetooth stack.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%