My current project has two subprojects. In that I mean there are some devices in the setup running one codebase and another set of devices on another codebase. There is a lot of shared code between the two device rolls.
My structure is below:
ProjectFolder/lib/Common/(random collection of code) ProjectFolder/Codebase1/(full pio project) ProjectFolder/Codebase2/(full pio project)
When I add the following to my platform.ini, the files in Common are found.
build_flags = -I ../lib
My problem is that there is code in the Common folder trying to access <WiFi.h> and that is not found. I suspect none of the lib_deps will be found in the Common folder.
Is this the right way to share common code between projects? I would rather not write a library just yet, just sharing source would be ideal.