Disable Filesystem OTA
This feature is only available in ElegantOTA Pro
ElegantOTA allows you to selectively enable or disable the update targets of your choice for security reasons, or when you have an important task running that you do not want interrupted by an OTA update. The portal automatically hides a target that has been disabled.
This is about what an update is allowed to overwrite - the firmware or the filesystem image - and applies to every OTA mode.
Using these functions you can enable or disable filesystem updates ( SPIFFS or LittleFS ).
Enable Filesystem OTA
// Pass 'true' to enable Filesystem mode
ElegantOTA.setFilesystemMode(true);💡
Both targets are enabled by default on startup (cold boot).
Disable Filesystem OTA
// Pass 'false' to disable Filesystem mode
ElegantOTA.setFilesystemMode(false);Get filesystem target status
// You can use this logic inside a function if neccessary
if(ElegantOTA.checkFilesystemMode() == true) {
Serial.println("Filesystem mode is enabled");
} else {
Serial.println("Filesystem mode is disabled");
}