Using a modified framework libary

Hi there

I have an ESP8266 project where I need to modify one of the libraries that comes with the arduino framework. I only need this one project, and to use a modified ESP8266HTTPClient.h found in this folder: .platformio\packages\framework-arduinoespressif8266\libraries\ESP8266HTTPClient\src

I need all other projects to keep using the stock/unmodified version.

I suspect I can do this in the platformio.ini file but can’t figure out how.

Any help appreciated

This is documented here. Just point the framework-arduinoespressif8266 package to a github repo where you modified this file.

1 Like

Just copy this library from a framework folder to project/lib and do modifications.

Hello I tried this, but the compiler ignores the modified esp32-hal-uart.c using the one delivered with the framework

Full project is where?