-->
Page 1 of 1

getting start address of spiffs file

PostPosted: Fri Mar 25, 2022 7:16 pm
by mrdsn3
hi
I try need to know my file address in spiffs
absulot regestri adress not spifs path "
how can I know that?

Re: getting start address of spiffs file

PostPosted: Sun Mar 27, 2022 8:34 am
by rpiloverbd
Hello, are you trying to do something as shown in the serial monitor output of this tutorial? https://techtutorialsx.com/2019/02/23/e ... le-system/

Re: getting start address of spiffs file

PostPosted: Sun Mar 27, 2022 10:34 pm
by Inq720
mrdsn3 wrote:hi
I try need to know my file address in spiffs
absulot regestri adress not spifs path "
how can I know that?


It's not 100% clear to me what you're asking... but I'll take a WAG at two things...

  1. If you have your files in data folder in your Sketch project AND are using the SPIFF upload tool to place them on the ESP, they will be exactly the same relative place, ie...
    Development Machine => ESP/SPIFFs
    <sketch folder>/data/index.html => /index.html
    <sketch folder>/data/subfolder/page.html => /subfolder/page.html

  2. If you have some kind of web server Sketch on the ESP serving those files, then is should serve those files if you browse to the address given when it started up.

    1. If you are using a SoftAP connection and connect directly to the SSID you programmed, it will have an address that you would have programmed... ie... 10.10.10.10/subfolder/page.html
    2. If you have your ESP server also connecting to a router, the router's DHCP will assign it an IP address... say 192.168.1.42. The ESP Sketch should spit this out in the Serial Monitor. In that case, you would use
      192.168.1.42/subfolder/page.html
    3. If you server Sketch also notified your router of its host name... say (Gonzo), you would also be able to access the file (on you local network) using it, ie... http://Gonzo/subfolder/page.html

      InqPortal will show all three of those versions.

P.S. Are you aware that SPIFFs has been deprecated? The current recommendation is to use LittleFS

I hope one of those things is close to helping.

Re: getting start address of spiffs file

PostPosted: Tue Apr 05, 2022 6:56 am
by SuomyNonaPatri
I might be wrong on some technical details, but basically SDK includes linker scripts which define mcu address space to spi flash layout and definitions used by spi flash IO and SPIFFS library. When you select flash size variants in arduino IDE menu, you basically just select which script should be omegleshagle used by linker.