• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Why do I receive compiler warnings for SPIFSS (degraded …)

Q&A Forum › Why do I receive compiler warnings for SPIFSS (degraded …)
0 Vote Up Vote Down
Selcuk Ozbayraktar asked 3 years ago

Hi Rui, and colleagues who are interested,

I feel embarrassed to receive red printed complaints from compiler, although my programs compiled and run smoothly. This case is related to SPIFFS library. Following screen shot is from my WEB server project which use SPIFFS library. What is the reason for these warnings, what should I do to get rid of them ?

Oops, I could not find a way to add image, so I copy the message below:

/Users/selcuk/Documents/Teknik_seyler/ESP8266_Projects/Ardunio_IDE_ile/STM32_ESP_8266_Web_Server_SPIFFS/STM32_ESP_8266_Web_Server_SPIFFS.ino:174:8: warning: ‘SPIFFS’ is deprecated (declared at /Users/selcuk/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/FS.h:269):

SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.

 

4 Answers
0 Vote Up Vote Down
Steve Mercer answered 3 years ago

My understanding is that SPIFFS is for ESP32 and LittleFS is for ESP8266.

0 Vote Up Vote Down
Selcuk Ozbayraktar answered 3 years ago

Thanks for your attention Steve,
I tried to include “LittleFS.h” and replace all SPIFFS’ with LittleFS. Error messages disappeared but I just get blank WEB pages.
BR

0 Vote Up Vote Down
Selcuk Ozbayraktar answered 3 years ago

Resolved !
Migration to LittleFS is being recommended. SPIFFS is going to be replaced by LittleFS which has better capabilities such as directory handling.
Replacing #include <FS.h> with #include <LittleFS.h> and replacing all “SPIFFS” with “LittleFS” in the sketch is sufficient. One more thing, “ESP8266 Sketch Data Upload” plug-in needs to be replaced with “ESP8266 LittleFS Data Upload”. Then everything runs smoothly.
Best regards,

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
I didn’t know about this issue either.
So, thanks for sharing the solution.
I’ll mark this issue as resolved.
If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.