esp-wifi icon indicating copy to clipboard operation
esp-wifi copied to clipboard

Bluetooth client api/example

Open ccruquan opened this issue 2 years ago • 4 comments
trafficstars

Is any plan support device as bluetooth client?

ccruquan avatar Jul 27 '23 01:07 ccruquan

There are currently no real plans to add an example for working as a BLE central device.

The problem is for that we just don't have a convenient BLE stack which could do that. I think porting Nimble would be possible but ideally someone would create a pure Rust BLE central stack (but I don't know of anyone working on that right now)

I know that someone is definitely using esp-wifi to scan for BLE advertisements at least - if that is sufficient for you, we could add an example for that by just using raw HCI commands sent to the driver

bjoernQ avatar Aug 07 '23 07:08 bjoernQ

Not the issue opener, but an HCI example would be very much appreciated as I'm looking to use an external host in my case

par5er avatar Oct 02 '23 16:10 par5er

I think not only client as central, but also client as peripheral would be interesting (e.g. for Current Time Service, where the central, e.g a smartphone, is the server of the CTS and the device as a peripheral fetches the time information in the role of a client).

trembel avatar Dec 21 '23 17:12 trembel

I think having an example like this would be really nice too! If someone has some spare cycles, we'd appreciate some help in the form of contributions. We'd be happy to mentor and answer questions to help through the process, we just don't have time to work on this ourselves right now.

MabezDev avatar Feb 20 '24 15:02 MabezDev