Hello,
This is more of a best practices sort of question. My setup is the following:
I’m making a lib with Platfformio, I have the src
folder with my code, and examples
folder. One of my dependencies is a modified (by myself) version of another lib (NTPClient in this case).
My question is about the best place to put the NTPClient lib? I’ve looked into PIO docs about library structure, but it is not very clear for this specific case. I’ve also looked into other published libs, and saw some use other directories (ArduinoJson has an extras
dir for example).
I’m thinking the options are:
- Inside
src
folder, on its own subfolder - Create another folder in root, maybe called
extras
,lib
,include
orlib_deps
- Fork NTPClient and add my version to “dependencies” in the library.json file
So where would be the more appropriate place? One of the options I mentioned, or something else?