Questions tagged [spiffs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
29 views

ESP32 SPIFFS Write problem

I'm trying to flash a spiffs on a esp32 but it is not working, i'm using these commands from this source: to create the image: mkspiffs -c /data/ -b 4096 -p 256 -s 0x100000 spiffs.bin my output was ...
Danilo Namitala's user avatar
1 vote
1 answer
64 views

how to make this code work with spiffs?

So, I have a page to select a txt file from the user's device and save it to SD card: <!DOCTYPE html> <html> <head> <title>File Upload </title> </head> <body&...
M A K's user avatar
  • 85
0 votes
2 answers
2k views

ESP32 - error when using `LITTLEFS.h` after core updated to 2.0.4

After updating ESP32 to core version 2.0.4 (file in Arduino IDE preferences was replaced tohttps://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json to upgrade), I ...
guyd's user avatar
  • 993
0 votes
3 answers
1k views

How to store a struct in a file?

I'm trying to store (read&write( a struct using LittleFS on ESP8266. Appreciate assistance struct oper_string { bool state; /* On or Off */ uint8_t step; /* Step, in case of PWM */ ...
guyd's user avatar
  • 993
0 votes
2 answers
415 views

ESP32 AsyncWebServer with softAP does not serve pages

I'm trying to create a AsyncWebServer after enabling the SoftAP: #include <Arduino.h> #include <SPIFFS.h> #include <WiFi.h> #include <WiFiAP.h> #include <AsyncTCP.h> #...
Mark's user avatar
  • 357
2 votes
2 answers
209 views

How to install the application + its configuration to many devices of the same kind? (ESP32)

Being the newbie in the Arduino area... Having more devices, how can I upload some configuration parameters after the code was uploaded? Is it possible? Situation: I have the simple application for ...
pepr's user avatar
  • 147
1 vote
2 answers
5k views

No SPIFFS data upload in Arduino IDE 2.0.0-rc3 (ESP32 & TTGO) - Ubuntu

I tried adding esp32fs.jar to /home/myname/Arduino/tools/ESP32FS/tool (and a few other places as it looked likely that the jar file wasn't loading). I've definitely got the correct board selected, ...
HardlyNoticeable's user avatar
0 votes
1 answer
191 views

Error saving SPIFFS on ESP8266 - only after 3rd entry

EDIT1 - This phenomena occurs only after reboot using button or ESP.reboot() I'll try to make my question more focused: I have library that saved log events to SPIFFS. From 3rd entry (in the ...
guyd's user avatar
  • 993
3 votes
0 answers
463 views

SPIFFS and LittleFS don't show all my files with readdir() and can't open() them

I created a simple sketch that just tries to list the files in SPIFFS. The SPIFFS filesystem was created with the version of mkspiffs that's part of the esp8266 package. The upload all seems to work, ...
Stephen Harris's user avatar
1 vote
1 answer
3k views

How to write & read from SPIFFS file as object data on ESP8266

I am trying write four digit number to SPIFFS file, and read that four digit from SPIFFS file and display on seven segment. The code, I am writing as below, I got "0" on each segment, but if ...
Ali Morawej's user avatar
2 votes
1 answer
2k views

ESP-32 Upload Files to SPIFFS via browser

I am using ESPAsyncWebServer Library in a ESP32 DevKit. I want to make a form in the browser in order to upload files in SPIFFS. I have to notice that the whole device works perfectly. I connect to Wi-...
aris99's user avatar
  • 21
1 vote
0 answers
750 views

Trying to improve speed of downloading files from server and writing to SPIFFS

update I have updated the code(second code segment) so that the null character is inserted into the array which solves the problem of writing past the end of the array. in order to stop the program ...
user2105725's user avatar
2 votes
2 answers
82 views

Best Data model/Concept to Store Multi-Day Alarm for clock?

I'm writing a multiday day alarm program for a project. I'm not sure how I want to store the format of each of 10 alarms....I need to store it...in SPIFFS retrieve it(at boot) and then compare it to ...
BostonMacOSX's user avatar
1 vote
1 answer
1k views

ESPTOOL not recognizing ESP32-S2 chip for SPIFFs transfer

I have a spiff file that uploads fine using a regular esp32, but when I try on the esp32-32, with a fresh installation, I get: esptool.py v3.0-dev Serial port COM3 Connecting.... A fatal error ...
Marr Madden's user avatar
2 votes
1 answer
1k views

Any way to use DMA to transfer data to SD Card in ESP8266

I'm using ESP8266 at speed of 160 MHz to record ADC results into SD card, I need to do this at rate of 8 KHz. Means that i should save it on the SD Card or i'll run out of memory before 4 Sec passes. ...
A.R.S.D.'s user avatar
2 votes
1 answer
1k views

ESP32 AsyncWebServer SPIFFS problem loading page

I can load spiff docs, but I get a 404. Wireless works, IP addressing works and I can load other examples successfully. This simple image load ino is giving me fits! #include <WiFi.h> #include ...
Marr Madden's user avatar
2 votes
2 answers
607 views

Where to store critical data in power outage situation on ESP8266

I want to store a counter that is always changing, but I want it to remain and be able to retrieve it on after a power loss. It's only one long number data, but as it is always changing, I don't know ...
harold's user avatar
  • 121
1 vote
0 answers
6k views

How to download a large text file using HTTPS on an ESP32?

Trying to create an ESP32 access to a public Spple calendar, but after connecting to the server and saving to SPIFFS it fails at the same point each time. I end up with a file of around 220 kB, when ...
A. Coote's user avatar
0 votes
1 answer
1k views

Convert Binary to char

I'm reading a text file saved on my ESP8266 device (using LittleFS). while (myFile.available()) { Serial.write(myFile.read()); } My goal is to save file content ( each line ) to a String /...
guyd's user avatar
  • 993
0 votes
1 answer
283 views

Store & retrieve parameters after sketch update

I have a Generic code for some IOT devices which vary in some parameters ( lets say it is only its MQTT name and subscriptions). Since I use OTA to update sketch, I'm looking for a way to A) write ...
guyd's user avatar
  • 993
0 votes
2 answers
322 views

writing mqtt payload to spiffs file

I'm trying to write the payload of a MQTT message into a file in the SPIFFS file system of my esp32 board. I've tried this: if(file.print((long)payload)) { Serial.println("File was written"); }...
Johnny's user avatar
  • 1
2 votes
2 answers
1k views

Crash when serving static files width ESP8266WebServer

For the past two days, I've been trying to set up an ESP8266WebServer to serve my static web app files from SPIFFS. But as soon as I make a call to serveStatic, the ESP crashes. This is the exact code ...
Alexander Richter's user avatar
2 votes
1 answer
4k views

OTA-program SPIFFS on the ESP8266

Something I'd like information on is whether it is possible to upload a SPIFFS filesystem image to the ESP8266. In theory it might work: It can be uploaded over USB, and according to the logs the ...
user avatar
-1 votes
1 answer
96 views

How to respond dynamically by using File Containing Templates?

We are developing a Web Console and REST API for the NodeMCU V3 ESP8266, using ESPAsyncWebServer. We are facing some difficulties to serve dynamic pages using File Containing Templates! We're unable ...
Śhāhēēd's user avatar
-1 votes
2 answers
1k views

Reading from SPIFFS - What's the best way to deal with a string (or char) array with undefined length?

I've read that it's best to avoid using String in Arduino so I'm ready to use a char array if it's better. I'm reading the file names from an SD Card and my goal is to store them in an array and then ...
JingleBells's user avatar
0 votes
0 answers
610 views

SPIFFS image does not fit in flash (offset 108MB)

I'm trying to upload an empty SPIFFS image to my ESP32's flash memory via the ESP32 sketch data uploader but I'm getting the following error: [SPIFFS] data : /path/to/my/data [SPIFFS] start : ...
Sim Son's user avatar
  • 1,829