Thanks for the speedy response, James! I verified that I can see my archive now.
I'm still having a problem and, although this might not be the best forum, I thought I'd seek your help first.
When I attempt to print something, the data now makes it all the way from the server to my ethernet client, but still no actual printing. Here's what I see when I monitor the serial output:
132392: Waiting for data
132413: Waiting for data
132441: Waiting for data
132467: Waiting for data
132495: Waiting for data
132521: Waiting for data
132549: Waiting for data
132576: Waiting for data
132602: Waiting for data
132661: Content length: 1793
132898: Waiting for data
132898: Waiting for data
132899: Waiting for data
132912: Waiting for data
132939: Waiting for data
133134: Waiting for data
133135: Server disconnected
133292: Failure, content length: 1793
length: 1793
133293: cache: 0
133298: Bytes: 1793
133319: Duration: 1208
inline void initSD() {
pinMode(SD_Pin, OUTPUT);
if (!SD.begin(SD_Pin)) {
// SD Card failure.
terminalError(2);
}
/* test that it can write to the SD card */
File myFile = SD.open("test.txt", FILE_WRITE);
if (myFile) {
debug("Writing to test.txt...");
byte written = myFile.write("testing 1, 2, 3.");
debug2("wrote: ", written);
// close the file:
myFile.close();
debug("done.");
} else {
// if the file didn't open, print an error:
debug("error opening test.txt");
}
}
test.txt was created and written to with no problem. Still I can figure out why "cache.write(client.read());" writes nothing to the file (I've also verified that the client.read() contains data when I just debug output the results).
I'm so close, I can feel it. Your help would, again, be much appreciated.
Thanks!
-Atish