запись времени в переменную

This commit is contained in:
Dmitry Borisenko
2022-08-18 15:07:39 +02:00
parent 6b1265d6b8
commit e11fc59af9

View File

@@ -20,8 +20,9 @@ void ntpInit() {
static String prevTime; static String prevTime;
if (prevTime != timenow) { if (prevTime != timenow) {
prevTime = timenow; prevTime = timenow;
// jsonWriteStr(configLiveJson, "timenow", timenow); String dateAndTime = getDateTimeDotFormated();
SerialPrint("I", F("✔ NTP"), getDateTimeDotFormated()); jsonWriteStr_(errorsHeapJson, F("timenow"), dateAndTime);
SerialPrint("I", F("NTP"), "" + dateAndTime);
} }
}, },
nullptr, true); nullptr, true);