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.
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
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,