PlatformIO Community

Moving a lib from libdeps to lib

Hi Community…

I am working with ESp32 and I am using the following lib

When I add this lib in the platformio.ini file I found the lib under the folder libdeps…

Now I want to modify the libn so I need to change and I want to move this lib from the external libdeps to the internal lib.

I changed the include path but I am getting a lot of mistakes…

How can I fix them ?


Try downloading the library (modbus-esp8266) into your lib folder (so that lib/modbus-esp8266) exists, then declare lib_deps = modbus-esp8266 in your platformio.ini instead of your previous declaration. Remove the entire .pio folder (to get a clean build) and press the build button. Does that throw any errors?