Trying to make component folder work
Posted: Sat Jan 02, 2021 11:39 pm
I have an external component folder called iot_device_common_files in the same parent folder as my project's folder iot_device
which includes .h and .cpp files.
In my project I have in Makefile:
EXTRA_COMPONENT_DIRS += $(IOT_DEVICE_COMMON_FILES_PATH)
So I have #include like this:
#include "../../iot_device_common_files/defs.h"
This works because the relative path goes from iot_device/main two levels up and into the common folder and refers to defs.h.
My next step is to include components the proper way. I want to include some FTDI USB-UART support so I created under the common folder. I'm mimicking what esp_https_client component is doing to set up some files. Just trying to log my progress here for now and I'm sure I'll encounter errors and need some help
Hope this thread when complete will help other set up their component folders
which includes .h and .cpp files.
In my project I have in Makefile:
EXTRA_COMPONENT_DIRS += $(IOT_DEVICE_COMMON_FILES_PATH)
So I have #include like this:
#include "../../iot_device_common_files/defs.h"
This works because the relative path goes from iot_device/main two levels up and into the common folder and refers to defs.h.
My next step is to include components the proper way. I want to include some FTDI USB-UART support so I created under the common folder. I'm mimicking what esp_https_client component is doing to set up some files. Just trying to log my progress here for now and I'm sure I'll encounter errors and need some help
Hope this thread when complete will help other set up their component folders