esp-rs / std-training

Embedded Rust on Espressif training material.
https://esp-rs.github.io/std-training
Apache License 2.0
590 stars 75 forks source link

有蓝牙BLE的教程代码吗? #264

Closed reformc closed 1 month ago

reformc commented 1 month ago

想使用蓝牙的功能,但是项目里只有wifi。能介绍下蓝牙如何使用吗?

SergioGasquez commented 1 month ago

Hi, take a look at the https://github.com/esp-rs/esp-idf-svc/blob/master/examples/bt_gatt_server.rs example.

Please, try to keep issues in English and for questions I'd recommend using the Matrix channel.

reformc commented 3 weeks ago

Hi, take a look at the https://github.com/esp-rs/esp-idf-svc/blob/master/examples/bt_gatt_server.rs example.

Please, try to keep issues in English and for questions I'd recommend using the Matrix channel.

Thank you. I'm trying a Ble client instead of a Ble server because I'm trying to make a Ble controller device. Is there any codes for the Ble client? For example, how to negotiate MTU, perform long write, notify