Datalogging telnet session to sdcard
hi, im using arduino ethernet shield , sdcard. have managed connect server , print serial screen cant print sdard. part of code im working not working correctly. wont save data client to sdcard instead saves random letters. please help!
the data transfer works
code: [select]
ethernetclient client2;
if (client2.connect(server2, 23)) {
if (client2.available() == 0) delay(2000);
mysensordata2 = sd.open("ptdata.txt", file_write);
while (client2.available() > 0) { //read data server2 telnet
char c = client2.read();
mysensordata2.print(c);
mysensordata2.close();
ftransfer2();
}
}
the data transfer works
post whole code. check if closing sdcard file after sending each character idea.
Arduino Forum > Using Arduino > Programming Questions > Datalogging telnet session to sdcard
arduino
Comments
Post a Comment