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...
- 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
- 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.
- 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
- 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 - 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
LittleFSI hope one of those things is close to helping.