I’m looking for some advise how I can use my own custom headers in some pio projects.
Background:
I created some headers files for WiFi credentials and Geo-location settings.
I’m using these header files already in some Arduino projects.
These header files are located in /mnt/nas_data/projects/Arduino/myHeaders/.
The header files have the names mySSID-Guest.h and TZLocation.h.
I tried already the setup with the help of a local folder ($HOME/myHeaders).
Any attempts using lib_deps entry with file://... and symlink:// were not successful.
The documentation of PlatformIO didn’t help much either.
Perhaps someone can give me a short code sample how I can link to the header files on the NAS.
Any help is much appreciated.
TIA
If they’re just header files without .cpp files then a much simpler -I (“add include search path”) flag for the compiler will also do the job. No need to put a library.json or library.properties then or adhere to any folder structures.
I continued testing the modification(s) in PlatformIO.ini and found out that on my include path (to the header files) the closing backslash (/) was missing.
After correction it is compiling without any error messages.