• 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

ESP32 web server: save data collected in server mode into SPIFFS

Q&A Forum › ESP32 web server: save data collected in server mode into SPIFFS
0 Vote Up Vote Down
Steven Falivene asked 3 years ago

I managed to set up a web server on the ESP32, great tutorial RN (https://randomnerdtutorials.com/esp32-web-server-arduino-ide/). I am developing a web page on the server to adjust and store settings into SPIFFS. These settings are then checked when the ESP32 boots up in Arduino mode; in Setup it opens the file in SPIFFS and gets the settings.  I can make a web server, and in Arduino mode I can make a JSON file and store and read the JSON in a file in the SPIFFS. But I cannot read and then save the JSON file when the ESP32 is in server mode, can anyone provide the code that can specifically read and save a string in a file in the SPIFFS on the ESP32?

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

Hi.
Take a look at the following tutorial: https://randomnerdtutorials.com/esp32-esp8266-input-data-html-form/
Go to section number 2: “2. ESP32/ESP8266 Save Input Fields to SPIFFS”. The code contains functions to read and write to SPIFFS.
I think it’s exactly what you’re looking for.
Regards,
Sara

0 Vote Up Vote Down
Steven Falivene answered 3 years ago

Thank you, this is great

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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

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

Copyright © 2013-2025 · 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.