Hi, This topic seems to have been beaten to death now but in spite of me reading so many solutions on the internet, i am unable to do this simple thing.
I am switching from Arduino IDE to Platformio and having trouble specifying an include path for my environment. Can somebody please help me out here. details below
I have my project under the path :
C:\My Data\OneDrive\Documents\Circuits\home_automation\Water Flow Senso
I have some common include files i keep for all projects of mine and they are located in
I am using the following in my main.cpp but it given an error that secrets.h not found:
//common files from /include
#include “myutils.h” //common utilities
I have tried the following solutions:
Changed the include path in c_cpp_properties.json to
"includePath": [ "C:/My Data/OneDrive/Documents/Circuits/home_automation/include", "C:/My Data/OneDrive/Documents/Circuits/home_automation/Water Flow Sensor/include", "C:/My Data/OneDrive/Documents/Circuits/home_automation/Water Flow Sensor/src", "C:/Users/U0031929/.platformio/packages/framework-arduinoespressif8266/tools/sdk/include",
Included the directory in platform.ini file under the env i am building (I only have one env)
include_dir = “C:/My Data/OneDrive/Documents/Circuits/home_automation/include”
Pl let me know what i am doing wrong. The solution which works is if i copy all my .h files into the directory C:/My Data/OneDrive/Documents/Circuits/home_automation/Water Flow Sensor/include but i dont want to do that because these files are used by other projects too.