Skip to main content

Disable Filesystem OTA

This feature is only available in ElegantOTA Pro.


ElegantOTA allows you to selective enable or disable OTA modes of your choice for security reasons or when you have a important task running where you don't want it to get interrupted by an OTA update. This will be represented in the portal (ElegantOTA webpage) too.

Using these functions you can enable or disable filesystem updates ( SPIFFS or LittleFS ).

Disable Filesystem OTA:

// Pass 'false' to disable Filesystem mode

Enable Filesystem OTA:

// Pass 'true' to enable Filesystem mode

Get Filesystem OTA mode 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");