Questions tagged [spiffs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
70 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 ...
2
votes
0answers
103 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, ...
1
vote
1answer
469 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 ...
1
vote
0answers
174 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-...
1
vote
0answers
136 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 ...
1
vote
2answers
63 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 ...
1
vote
1answer
398 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 ...
2
votes
1answer
333 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. ...
2
votes
1answer
338 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 ...
2
votes
2answers
160 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 being 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 ...
1
vote
0answers
3k views

How to download a large text file using Https on an esp32

Trying to create an esp32 access to a public apple 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 around 220KB, when the ...
0
votes
1answer
820 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 /...
0
votes
1answer
99 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 ...
0
votes
2answers
128 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"); }...
2
votes
2answers
613 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 ...
2
votes
1answer
3k 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 ...
-1
votes
1answer
58 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 ...
0
votes
2answers
656 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 ...
0
votes
0answers
231 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 : ...