-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any filesystem (SD/SPIFFS/LittleFS/SD_MMC) #92
Conversation
* Fixed few glitches, bugs and crash situations * testing fixtures
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few small changes
not sure why arduino-cli fails on this trivial sketch
Here's the deal for that new dispatched workflow: What this workflow does:
The resulting zip archive is only available from the github action tab though, so publishing the binaries to the web server should be done manually. |
@chrisjoyce911 is there anything else that need to be resolved before this is squash & merged ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resoved
Discuss this PR here
Followup for #25, #47, #60, #74, #79, #91
Because this PR creates many new logical situations and I have only tested a few, this should be considered as untested code.
Other changes mentioned in #25 are still being backported and tested.
Functional changes
With this PR:
fs::FS
filesystem abstraction.spiffs
,littlefs
,fatfs
holding path to filesystem image#include <LittleFS>
(on any other filesystem) is included from the sketch, and automatically use that filesystem to verify certificate signatures. If no filesystem is detected, firmware signature check will always fail!Sketches using more than one filesystem or compiled with older versions of platformio or may need this new method:
esp32FOTA.setCertFileSystem( &LittleFS ); // works with &SD, &SD_MMC, &SPIFFS
Also a new set of helper objects were added to handle the crypto assets in mixed situations:
Crypto asset usage with progmem:
Crypto asset usage with filesystem (can be different for each file):
Other changes in the PR
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
debugPayloadVersion( const char* label, semver_t* version )
was added to remove redundancy in the code (also adds clarity and saves a few bytes)@chrisjoyce911 may I suggest you enable the Discussions tab of this repository and create a few discussion threads such as: