Components cannot include system component
Posted: Wed Jan 08, 2025 6:16 pm
I have a project that want to divide into some subcomponent like
/projects
├───components
│ ├───ble_server
│ │ └───include
│ │ │ └───ble_server.h
└───main
│ ├───app_main.c
I've tried to import the bluetooth library
"#include "esp_bt.h" "
It works normally in app_main.c but when I include them on the ble_server.h file, I got error
fatal error: esp_bt.h: No such file or directory
10 | #include "esp_bt.h"
| ^~~~~~~~~~
So how to include idf component in subfolder like /components
/projects
├───components
│ ├───ble_server
│ │ └───include
│ │ │ └───ble_server.h
└───main
│ ├───app_main.c
I've tried to import the bluetooth library
"#include "esp_bt.h" "
It works normally in app_main.c but when I include them on the ble_server.h file, I got error
fatal error: esp_bt.h: No such file or directory
10 | #include "esp_bt.h"
| ^~~~~~~~~~
So how to include idf component in subfolder like /components