If you end up logging data to an SD card, making it all web accessible could be a lot of fun.
I managed to put together a little function that will create links to all the files on SD card
void sendFiles() {
int numTabs = 0;
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println("Connection: close");
client.println();
client.println("<!DOCTYPE html><html><body><h3>Printing files on SD card</h3>");
// send web page
webFile = SD.open("/");
while (true) {
File entry = webFile.openNextFile();
if (! entry) {
// no more files
break;
}
for (uint8_t i = 0; i < numTabs; i++) {
// tft.print('\t'); left over from something else
}
client.print("<p><a href=\"");
client.print(entry.name());
client.print("\">");
client.print(entry.name());
client.print("</a></p><br>");
if (entry.isDirectory()) {
tft.println("/");
// printDirectory(entry, numTabs + 1);
} else {
// files have sizes, directories do not
// tft.print("\t\t");
// tft.println(entry.size(), DEC);
}
entry.close();
}
client.println("</body></html>");
client.println();
}
Excuse the left over junk, I was debugging with the tft. But basically this will create a webpage that both displays all the files currently on your sd card, and also hotlinks those files. So if you have a file called "index.txt" your browser will send "GET /INDEX.TXT"