Hi. I am having an issue related to RTC and ESP32 or ESP8266, both cases.
When i use this functions:
lastResetTime = String(hour()) + “:” + minute() + “:” + second();
lastResetDate = String(year()) + “/” + month() + “/” + day();
The board resets and i have the following stack for esp exception decoder but i do not understand what it means(at the end in order to not mess my questions).it has some indication of lines of code but no my code but libraries used.
I used to work with #include <TimeLib.h>
but this issue appeared. But now i am using the library #include<WidgetRTC.h>
and WidgetRTC rtc;
, and it worked perfectly fine but a week after the problem starts again.
Is it a wrong way to use time, what other options exists? i read about unix time but i do not understand how to make it readable for humans.
Thanks in advance.
STACK:
Panic umm_malloc.cpp:229 umm_get_ptr_context
stack>>>
ctx: cont
sp: 3ffffa20 end: 3fffffc0 offset: 0000
3ffffa20: 00000000 3ffef4e0 3ffef720 00000030