I have a simple sample of code that i want to convent a time_t to char array in order to concatenate it after, in an other array. Code:
time_t unixt; char exm ; unixt = RTC.get(); Serial.println(unixt); dtostrf(unixt, 10, 0, exm); Serial.println(exm);
The problem that i face is that, the console is printing different the second one every time like this:
I tried also with unsigned long with no result either. Can someone point me what's wrong or an other way of doing this?