Use SD Cards of an ESP32: sourced guides tips & tricks (Arduino IDE)
firmwareprogram.I have been using ESP32 boards that all embark a SD Card slot that can be used for many reasons, especially to store heavier files that will be call and run from your firmware program.
There is also another external memory onboard (SPI Memory) that can be used for the same reason, such as using wifi library and programs displaying data on a browser from html and other web files stored in hard memory and called by the microcontroller.
Another goal can be to move libraries or other programming parts when you are limited by the mcc memory size, which can quickly occur with various types o programming intents such as arrays of sensors signals aquisition, storage, DSP and mapping, which is the case for real-time Digital Music Instruments
preference.h library for basic stuff
Application case: sore LedState of lights control systems to remember Led state for home automation system if the esp32 gets unplugged.
Other option if applicable: use new nimBLE instead of previous BLE library
Cause: BLE and BLE-MIDI libraries are huge, thus limitting further programming
Alternate solution:
https://www.arduino.cc/reference/en/libraries/nimble-arduino/