You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to add SPIFFS update option. Ideally it should be made right after the main FOTA update, before rebooting. This is because updating SPIFFS won't result into a FW_VERSION change, therefore it will be stuck in a catch 22 until the SPIFFS binary is deleted from server.
I tried to make this modification but it is not enough. The good thing is that the underlying ESP32 OTA function support SPIFFS update, it just needs a flag.
// check contentLength and content type
if (contentLength && isValidContentType)
{
// Check if there is enough to OTA Update
if(spiffsFlag) {
canBegin = Update.begin(contentLength,true);
} else {
canBegin = Update.begin(contentLength);
}
// If yes, begin
if (canBegin)
{
if(spiffsFlag) {
Serial.println("Begin SPIFFS OTA...");
} else {
Serial.println("Begin FW OTA...");
}
The text was updated successfully, but these errors were encountered:
It would be useful to add SPIFFS update option. Ideally it should be made right after the main FOTA update, before rebooting. This is because updating SPIFFS won't result into a FW_VERSION change, therefore it will be stuck in a catch 22 until the SPIFFS binary is deleted from server.
I tried to make this modification but it is not enough. The good thing is that the underlying ESP32 OTA function support SPIFFS update, it just needs a flag.
The text was updated successfully, but these errors were encountered: