Storing a Large (800kB) Website

aaquilina
Posts: 43
Joined: Fri Jan 20, 2017 3:10 pm

Storing a Large (800kB) Website

Postby aaquilina » Fri Mar 10, 2017 10:48 am

Hi,

Can anyone tell me what the best way to store a large website (815kB) in the ESP32's external flash? I assume, hard coding the website directly into a header file would not utilise the external flash and therefore causes the user app not to boot. I have converted the website to a hex dump as recommended by Mr. Kolban, but I'm not really sure what the best way to proceed would be.

ChrisHolza
Posts: 7
Joined: Mon Jan 09, 2017 1:32 pm
Location: Germany

Re: Storing a Large (800kB) Website

Postby ChrisHolza » Fri Mar 10, 2017 10:59 am

Have you checked https://github.com/espressif/esp-idf/bl ... inary-data?

You'll probably want to use COMPONENT_EMBED_TXTFILES. Works fine for HTML...

aaquilina
Posts: 43
Joined: Fri Jan 20, 2017 3:10 pm

Re: Storing a Large (800kB) Website

Postby aaquilina » Fri Mar 10, 2017 11:05 am

Excellent. I would probably opt for the COMPONENT_EMBED_FILES because of any escape characters in a string such as a backslash. Thanks! Let me give it a go.

aaquilina
Posts: 43
Joined: Fri Jan 20, 2017 3:10 pm

Re: Storing a Large (800kB) Website

Postby aaquilina » Fri Mar 10, 2017 1:26 pm

For anyone who comes across this thread, there is a very similar thread which goes into greater detail here:
viewtopic.php?t=676

Who is online

Users browsing this forum: hyansuper and 122 guests