Using CPP library in PlatformIO

No problem.

And, on a last note, the firmware tries to do OTA here

but with a 4Mbyte flash and 1 application partition of 3MByte (which is already 85% full), this won’t work, as OTA requires two APP partitionts of equal size, which would need an at least 6MByte flash chip here and an adapted partition table. If you had a board with a 16Mbyte flash chip, you could use the partition table arduino-esp32/default_16MB.csv at master · espressif/arduino-esp32 · GitHub, (2x 6.5 MByte APP partition + 3.6MByte SPIFFS)

Okey, will disable OTA for now. Thank you for the recommendation :blush: