esp32 рабочая версия с little fs файловой системой

This commit is contained in:
Dmitry Borisenko
2022-09-16 01:52:04 +02:00
parent aae21f4a78
commit d4539169ea
11 changed files with 138 additions and 104 deletions

View File

@@ -156,3 +156,11 @@ const String getDateTimeDotFormatedFromUnix(unsigned long unixTime) {
sprintf(buf, "%02d.%02d.%02d %02d:%02d:%02d", time.day_of_month, time.month, time.year, time.hour, time.minute, time.second);
return String(buf);
}
const String getDateDotFormatedFromUnix(unsigned long unixTime) {
Time_t time;
breakEpochToTime(unixTime, time);
char buf[32];
sprintf(buf, "%02d.%02d.%d", time.day_of_month, time.month, time.year + 2000);
return String(buf);
}