I’m trying to include the BLE header into my ESP32 project,
added line
REQUIRES bt esp_common driver hal freertos log
to CMakeLists.txt as instructed by documentation
https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/bluetooth/esp_gap_ble.html
compiled with latest docker image
sudo docker run --rm -v $PWD:/project -w /project -u $UID -e HOME=/tmp espressif/idf idf.py build
but still getting
/project/main/ble_wrp.c:9:10: fatal error: esp_gap_ble_api.h: No such file or directory 9 | #include "esp_gap_ble_api.h" compilation terminated.
weirdly I didn’t have any problem including wifi, didn’t even have to modify REQUIRES for it
#include "esp_wifi.h"