memory and web pages

Discussion about any of the included sketches (i.e. WebServer), or user-generated applications.

memory and web pages

Postby techiebot » Sun Sep 12, 2010 2:14 pm

Sorry if this is a dumb question. I have some experience programming the Arduino, and creating web pages. But very little with wifi protocol.

Is is possible to store a web page on the new module's memory chip?

How would you download the page to the chip?

How would you access the page once it's there?

Could you put graphic files on the chip?

Thanks for any advice-----
techiebot
 
Posts: 12
Joined: Sun Dec 27, 2009 1:25 pm

Re: memory and web pages

Postby spidermonkey04 » Wed Sep 15, 2010 1:06 pm

I posted an example of this somewhere, about serving webpages from the Dataflash. Here's the basics:
Use an "uploader" sketch to put your data into the memory chip, noting the page and byte position within that page. Images need to be converted to hex with something like bin2h.exe

Then in YOUR sketch when you want to serve the page, tell dataflash to give you X amount of bytes starting at page Y byte position Z.

This works fine for static data or images ( favicon.ico ;) ) that don't really change, but if you want to serve sensor data or something you'll need to be a lil creative.

Of course, this is just one way to do things.

---Jared
spidermonkey04
 
Posts: 66
Joined: Thu Oct 29, 2009 6:45 pm


Return to Sketches and Applications

Who is online

Users browsing this forum: No registered users and 2 guests

cron