Hi
I got this code:
DateTime now = rtc.now();
myFile.print(now.year(), DEC);
myFile.print(F(","));
myFile.print(now.month(), DEC);
myFile.print(F(","));
myFile.print(now.day(), DEC);
myFile.print(F(","));
myFile.print(now.dayOfTheWeek());
myFile.print(F(","));
myFile.print(now.hour(), DEC);
myFile.print(F(","));
myFile.print(now.minute(), DEC);
myFile.print(F(","));
myFile.print(SensorNum);
myFile.print(F(","));
myFile.print(SensorType);
myFile.print(F(","));
myFile.print(DHTTempValue);
myFile.print(F(","));
myFile.print(DHTHumValue);
myFile.print(F(","));
myFile.println(X_SensorValue);
// close the file:
myFile.close();
It wont print it a single line every time.
How can I make a buffer and send it in a single line.
or rewrite the code. So it only looks like this, I think:
myFile.println(Buffer());
Hope for some help???