7

For the ESP32 options are normally enabled with "make menuconfig".

PlatformIO with Atom also allows to create ESP32 projects with an empty source folder. It automatically installs an ESP-IDF 0.11.

I tried to create a new project following this guide.

I created the project, then inserted app_bt from this source, tried to compile - and it failed with "esp_bt.h" not found message.

After some reading it seems that it is created when "make menuconfig" is execute.

I also tried to copy one of the samples "sdkconfig.h" and put #define CONFIG_BT_ENABLED 1 in it. Same result as before.

Does anybody know how to create or enable this settings, so that compilation can be done successfully?

Bence Kaulics
  • 7,843
  • 8
  • 42
  • 90
Offler
  • 171
  • 2

1 Answers1

3

I followed the same tutorial and I also had this problem. It seems that esp_bt.h only appears in the latest release of esp-idf and some changes are not yet available in PlatformIO.

The sample espidf-ble-adv (available from the PlatformIO home) compiles correctly.

Now, how to use the latest espidf in PlatformIO is left as an exercise for the reader ;-) I'm still searching.