Closed
Description
Capturing the points in discussion : e3c9702
- PlatformIO default optimization barfs on SD.h included in CertStoreSDBearSSL (needs -link=deep+)
- NO_GLOBAL_INSTANCES breaks the build due to SD.* in the code, but simple #ifdef workaround still leaves other chained dependency problems
- Having separate but almost identical CertStoreSPIFFS and CertStoreSD definitely sub-optimal (but no compatible
class File
exists between them)
@everslick and @igrr have suggested using callbacks and Stream to unify the two.
Given the above, a modification to the API to take a structure with several user-supplied callbacks for traversing directories and opening files (as Stream) seems appropriate.