Pages: [1]   Go Down
Author Topic: Arduino webserver question  (Read 778 times)
0 Members and 1 Guest are viewing this topic.
USA
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi im a high school senior working on a small home automation project for an internship. I was wondering if  it was possible to setup an arduino to serve webpages from .html files on an sd card. Basically my idea is to have a login page, a control page, and a log page showing when different users logged in and what they did. if it's possible do you know of a good tutorial for it? all i have been able to find are tutorials where the web pages were designed in the arduino sketch. Thanks.  smiley
Logged

0
Offline Offline
God Member
*****
Karma: 39
Posts: 988
Get Bitlash: http://bitlash.net
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Check out what Zoomkat is up to over here: http://arduino.cc/forum/index.php/topic,144675.msg1088974.html#msg1088974

-br
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8849
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here's a step-by-step tutorial that will get you pretty close.

http://www.ladyada.net/learn/arduino/ethfiles.html

I think all you need to do beyond that is recognize file extensions and put in the correct content type in place of:
Code:
client.println("Content-Type: text/plain");
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

USA
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks that should help  smiley-lol
Logged

Pages: [1]   Go Up
Jump to: