Mark D.
Mark D.
Just adding that struct tm is declared in tools/sdk/include/newlib/time.h its basically the same as unix struct tm, so look there for what elements are contained within it in order to...
Hey @beegee-tokyo, good to see you again. getLocalTime() is simply a wrapper around the function calls time() (like now() in arduino timelib) and localtime_r() which updates the struct tm elements....
@beegee-tokyo yes exactly, except that localtime_r takes both arguments as pointers, so if "info" is declared as struct tm, then its... ```javascript time_t now; struct tm info; time(&now); localtime_r(&now, &info);
How long did you let it run? Calling SPIFFS.begin(true) formats the filesystem, which can take a while to run. After formatting once, call SPIFFS.begin() without any parameters to just mount...
Dont have a feather to test but I just ran a format on a lolin32 and it was faster than I thought.. like under a minute. Maybe try a simple...
I thought for sure fixing the two unbalanced comments would have solved it, unless he already fixed those. From the original post, it starts with /* Mount SPIFFS. / and...
oh ok yes I can see now said the blind man. :)
I dunno I tested the same code and I couldnt get it NOT to work.
Setup the same as example sketch then: ```javascript time_t now; time(&now); Serial.println(now);
getLocalTime() calls time() to fetch the unix timestamp and localtime_r() to convert that to local time, filling in the struct tm elements (tm_hour, tm_min, etc). It also has a timeout...