I use Visual Studio Code to write firmware for an ESP8266 (with Platformio) and a Photon (with Particle Workbench).
I wrote several wrapping library for the ESP8266 and now I’m tring to use it also for the Photon.
I use the ifdef statement to include low level libraries for each target.
My idea is to mantain the same project structure for both projects.
This is the program structure for ESP8266:
The lib folder includes libraries downloaded from internet (ESP8266)
The include folder includes the header file for my wrapping functions
The src folder includes the cpp file for my wrapping function and the main file.
I want to use the same structure for my Particle project:
The lib filder includes the libraries downloaded from internet through particle CLI
The include and src folder include the header and source file for my wrapping libraries.
When I try to compile the project locally I get this error:
/src/mqtt_interface.cpp:31:38: fatal error: include\mqtt_interface.h: No such file or directory
I included the header file “mqtt_interface.h” with
Did I something wrong?
Thanks in advance for the help.