taks / esp-idf-ble

This project aims at providing a safe Rust wrapper of esp-idf to enable BLE on the ESP32 microcontrollers family

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CI MIT/Apache-2.0 licensed

esp-idf-ble

This project aims at providing a safe Rust wrapper of esp-idf to enable BLE on the ESP32 microcontrollers family

What's working ?

It's using a custom Rust wrapper around the esp-idf bluedroid BLE API As of now, only the gatt_server example is partially implemented. IT is a rust port of this esp-idf gatt_server example.

The goal is to complete the wrapper library and maybe make it usable elsewhere.

How to use ?

Refer to this repo to install the custom Rust ESP toolchain. You should also install cargo espflash to ease the use of this project.

Then you can launch the following command to compile one of the example, flash it to your device and monitor the ESP32 serial:

cargo espflash --example <example> --monitor --speed 921600 <device> --target <target>

Targets:

  • xtensa-esp32-espidf
  • xtensa-esp32s2-espidf
  • xtensa-esp32s3-espidf
  • riscv32imc-esp-espidf

Examples

  • gatt_server

About

This project aims at providing a safe Rust wrapper of esp-idf to enable BLE on the ESP32 microcontrollers family

License:Apache License 2.0


Languages

Language:Rust 94.7%Language:Dockerfile 5.3%