• 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

Problem with 1_2_Hello_World_WS_SPIFFS example

Q&A Forum › Category: ESP32 › Problem with 1_2_Hello_World_WS_SPIFFS example
0 Vote Up Vote Down
Judson Belmont asked 2 years ago

I was able to upload the Hello World of the Web Server Course however, I’m bruising my skull against a wall on the SPIFFS example. 1.2. Questions- 1. the search for  ESPASYNCSERVER libraries yields two choices ,, the one by goshok and the one by ESPHOME. Which, if either is correct? 2.  The platformio.ini only shows the ESPASYNCSERVER library but the main.cpp shows many? when should they match and when not?
3.  in the early lesson we downloaded the BME280 library as an exercise.  Should I be downloading each of the libraries shown in the sketch through the PLATFORMIO project manager OR can I download them on the Arduino IDE(2.2.1, MAC OS)? 4. I am receiving this message of a lot missing. Is that because I have not downloaded the correct libraries?https://imgur.com/EsP8i7t

Question Tags: ESP32, platformio, SPIFFS
2 Answers
0 Vote Up Vote Down
Judson Belmont answered 2 years ago

http://examples/espidf-storage-spiffsI have partially resolved my issue.  1. I can successfully run the program and Spiffs is recognized when when I used the fix with the GitHub link.  Did not work with the @3.5.0 suffix.  I totally could not use the fix for changing the Authentication file mentioned in the error message(one of the three fixes suggested) Would appreciate help in understanding the steps to implement that fix.

 

I did find the link fix in the ESPAsync library

[env:myboard]
platform = espressif…
board = …
framework = arduino

# using the latest stable version
lib_deps = ESP Async WebServer

# or using GIT Url (the latest development version)
lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer.git

So I understand how you derived that fix.

2.    Am I correct to understand that if a library is in the Arduino IDE, then as long as the framework in VSCode is <arduino> then we don’t have to reload it but instead it is sort of globally available? And just have to list the library that we have in the Arduino IDE in the platformio.ini file?
(P.S. I also tried using

platform = espressif32 @ ^6.0.1 in PlatformioIO without success.)

 

3.  I found in https://github.com/platformio/platform-espressif32

a spiffs “storage ” library “espidf-storage-spiffs”

examples/espidf-storage-spiffs

 

http://examples/espidf-storage-spiffs

Is this relevant or something to stay away from?

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

Hi.
You just need to follow the instructions on the eBook and everything should work. We mention when you need to install a library.
Including the library in the platformio.ini file usually automatically installs that library for the project you’re working on. So, when following the eBook, simply copy the contents of the platformio.ini file that we provide. We provide the platformio.ini file for all projects.
 
When a library is available as default in the ESP32 core (when you can use it without installing it in the Arduino IDE), you  don’t need to install it, or include it in the plaformio.ini file. It is globally available.
 
Just follow the steps on the eBook, you don’t need to search for other libraries not mentioned. Try to follow the project again as it is. Tell me if you get any issue and at what step exactly.
 
Regards,
Sara

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.