Questions tagged [spiffs]

Spiffs is a file system intended for SPI NOR flash devices on embedded targets. It is popularly used on ESP8266 and Arduino for storing configuration settings.

67 questions
3
votes
0 answers

Limited flash memory of ESP32 way below declared 4mb for SPIFFS

I'm using ESP32 module WEMOS LOLIN32 to setup simple webserver with basic captive portal. I've modyfied build-in example of Captive Portal to work as async web server, with all files stored as SPIFFS. All is working good, but I have a problem that I…
fundakk
  • 79
  • 1
  • 7
3
votes
1 answer

Delete lines in SPIFFS (ESP8266/Arduino)

I am trying to create a function that will delete a line from a text file stored in SPIFFS on an ESP8266. I have tried to follow the "space overwrite" method found here https://forum.arduino.cc/index.php?topic=344736.msg2380000#msg2380000, but I…
Pinja
  • 33
  • 1
  • 4
2
votes
1 answer

With SPIFFS or LittleFS, on an ESP8266, is it possible to write a filesystem to flash, and then later create/modify files from the firmware?

To clarify, I'm working on a project on an esp8266 (specifically an esp-12s using NodeMCU 1.0). I have a bunch of html files and images that I bundle into a LittleFS binary that gets written to the flash using esptool (or the arduino ide, which uses…
Dan Forever
  • 381
  • 2
  • 12
2
votes
0 answers

ESP32 | OTA Update | Config File In SPIFFS

I am creating a project where I want to do auto update by downloading update data from the server (FIRMWARE and SPIFFS update), I did it and it works, but I have a little problem because the device configuration (wifi password, ssid etc.) is saved…
Marak123
  • 21
  • 1
  • 3
2
votes
2 answers

Shorten file names in React build directory to less than 32 chars

This is going to sound really dumb but I need a way to shorten file names of my React build folder because I need to upload my React app to a SPIFFS file system on an ESP32 that only supports file names up to 32 characters (including folders). I…
user2741831
  • 2,120
  • 2
  • 22
  • 43
2
votes
2 answers

How to upload binary data (html + favicon) to ESP32 using ESP-IDF?

I am writing a file-serving http server for ESP32 using ESP-IDF and PlatformIO, but I just can't make data upload to SPIFFS work. I am trying to send html and favicon to flash, so it can be served on http. Code of the server is taken from an example…
vict
  • 158
  • 1
  • 11
2
votes
0 answers

SPIFFS upload size explanation

I have an ESP8266, specifically the ESP-12-E. I am using this aruino tool to upload data to the 4MB of SPIFFS storage available to me: https://github.com/esp8266/arduino-esp8266fs-plugin I am uploading a couple of files, which by my calculation add…
RenegadeAndy
  • 5,440
  • 18
  • 70
  • 130
1
vote
1 answer

How can I assign SPIFFS file name to a variable?

I am a relatively beginner programmer, and I've been combing for an answer for a while now. Coming up empty handed, I decided it was time to reach out. This is my first stack overflow post, be gentle. I am trying to build a program to retrieves a…
realreject
  • 13
  • 4
1
vote
1 answer

fseek endup with ERROR "Function not implemented" (ENOSYS)

I've function that opens up a file and than setting it pos from nvs at the program start-up. Everything happens after short time and function call end up with error that says [Line : 670] fseek ERROR : Function not implemented. After short period of…
Coffeeye
  • 31
  • 6
1
vote
1 answer

FireBeetle-ESP32 and mklittlefs parameters

I'm using a DFRobot FireBeetle-ESP32 with spiffs and I downloaded the esp32 boards file looking for the spiffs parameters block size, page size, spiffs start and spiffs end as I'm following this tutorial but for the ESP32, i.e. mklittlefs --size…
codebrane
  • 4,290
  • 2
  • 18
  • 27
1
vote
1 answer

Deploy react on an esp32 with 32 character file name limit

I would like to deploy a react application on a web server on an esp32 micro controller, to control an api on that same micro controller. The web server is working and can send files and receive requests. The only real problem is that file names of…
user2741831
  • 2,120
  • 2
  • 22
  • 43
1
vote
0 answers

Allow longer file names on ESP32 SPIFFS

I have a nodemcu-32s microcontroller on which I have setup a simple webserver that serves a spiffs directory. The project uses platformio to upload to the ESP32. I am trying to serve a react app from my esp but some of the filenames of the react app…
user2741831
  • 2,120
  • 2
  • 22
  • 43
1
vote
1 answer

ESP32 arduino x509 format is invalid loading from SPIFFS

I'm trying to fetch 3 keys from SPIFFS that I stored from a string to a file (when fetched from an API endpoint). I am able to read the files using the SPIFFS library and print the values out in the serial console. When I check the contents, they…
Robin
  • 1,567
  • 3
  • 25
  • 67
1
vote
1 answer

Read multiple text file in Arduino ide

I have folder contain n txt file(files have numeric values) I need to read these files and save the file contains in array. How can I read the contents of the first file1 in the array and then clear the array ,and then read the second file2 in the…
lena
  • 730
  • 2
  • 11
  • 23
1
vote
2 answers

How to load config and save new config LittleFS ESP32?

I'm using a json file in the data folder. I want to use this as a config file and update it with values as needed. I have a simple sketch to store ssid and password. First read it out, then change it, then read it out again via the serial monitor…
Voldum
  • 41
  • 3
1
2 3 4 5