This project works on a vscode platformio.
I am facing issues with resolving include paths in PlatformIO while trying to use the GuruxDLMS library for my ESP8266 project. I have encountered errors related to include paths and missing files. Despite following standard procedures for setting up libraries, I am unable to get the correct paths to work in Visual Studio Code.
- Library Setup:
- I have downloaded the GuruxDLMS library from GuruxDLMS GitHub.
- I placed the
.h
and.cpp
files in thelib/GuruxDLMS
directory of my PlatformIO project.
Configuration:**
Inplatformio.ini
, I added the following configuration:
Pred-formatirani tekst
[env:esp01_1m]
Pred-formatirani tekst
platform = espressif8266
Pred-formatirani tekst
board = esp01_1m
Pred-formatirani tekst
framework = arduino
Pred-formatirani tekst
lib_extra_dirs = path/to/GuruxDLMS.c
Pred-formatirani tekst
lib_deps =
Pred-formatirani tekst
${PROJECT_DIR}/lib/GuruxDLMS
Pred-formatirani tekst
build_flags =
Pred-formatirani tekst
-I${PROJECT_DIR}/lib/GuruxDLMS/include
Pred-formatirani tekst
upload_speed = 115200
Pred-formatirani tekst
monitor_speed = 9600
Pred-formatirani tekst
board_build.flash_mode = dout
Pred-formatirani tekst
board_build.ldscript = eagle.flash.1m.ld
Pred-formatirani tekst
upload_port = COM5
Error Cannot open source file "../ArduinoIgnore.h"
and Cannot open source file "include/gxignore.h"
This is the link : GitHub - Gurux/GuruxDLMS.c: Gurux DLMS library for ANSI C
in this file, everything is connected, so i created folder GuruxDLMS in project lib, and add two folders (include, src). In the include i copied every .h, and in the src i copried .c/.cpp. and it doesn’t work.