Bluetooth support of AtomVM on ESP32?

I’m trying to find atomvm’s bluetooth module support… the docs says

Network (ESP32 only)

The ESP32 supports WiFi connectivity as part of the built-in WiFi and Bluetooth radio (and in most modules, an integrated antenna). The WIFI radio on an ESP32 can operate in several modes:

  • STA (Station) mode, whereby it acts as a member of an existing WiFi network;

  • AP (Access Point) mode, whereby the ESP32 acts as an access point for other devices; or

  • AP+STA mode, whereby the ESP32 behaves both as a member of an existing WiFi network and as an access point for other devices.

AtomVM supports these modes of operation via the network module, which is used to initialize the network and allow applications to respond to events within the network, such as a network disconnect or reconnect, or a connection to the ESP32 from another device.

in Programmers Guide — AtomVM 0.7.0-dev+git.88b87ca1 documentation where 0.7.0-dev.

So I tried to find the bluetooth but only got Wifi AP. Where should I lookup? I’m completely lost right now.
Should I fork esp-idf and merge it into atomvm repo, compile by myself? That’s way too complicated for me now.

Any help….?

1 Like

There isn’t bluetooth support currently.

I’ve successfully experimented with using GitHub - blue-heron/blue_heron: Use Bluetooth LE in Elixir on a custom built AtomVM, that includes a simple ble_vhci(Virtual HCI) nif (and elixir genserver/supervisor support + custom circuits_uart).

This is of course subject to the capabilities of blue_heron, but worked fine.

But as you can see it’s very early days..

What are you trying to accomplish with BLE?

3 Likes

I was planning to receive sensor data(9dof; degree of freedom) through bluetooth |> my app.

For developing kinda digital health app.

Your post really helps. Thanks.

2 Likes