Hiya Community!
Atm i am working on my pool control unit and i do want to integrate a temp (DS1820) logging function (writing to flash in a ring buffer later).
I do have the RTC unit with a DS1307 and i am useing RTClib.
What i want to do is creating something like:
DD/MM hh:mm 26.4 ( where 26.4 is in °C)
what i do have so far is:
...
char TempBuf[10] = " ";
char buffer[17];
dtostrf(PoolTemp, 4, 1, TempBuf);
sprintf(buffer,"%02i/%02i", now.day(), now.month());
Serial.println(buffer);
if i do continue it like:
...
char TempBuf[10] = " ";
char buffer[17];
dtostrf(PoolTemp, 4, 1, TempBuf);
sprintf(buffer,"%02i/%02i %02i:%02i %04c", now.day(), now.month(), now.hour(), now.minute(), TempBuf);
Serial.println(buffer);
it freezes my arduino. Of course it has something to do with the parameters in sprintf but i don´t get it.
Your help is very much appreciated!
Cyber