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

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;
if (prevTime != timenow) {
prevTime = timenow;
// jsonWriteStr(configLiveJson, "timenow", timenow);
SerialPrint("I", F("✔ NTP"), getDateTimeDotFormated());
String dateAndTime = getDateTimeDotFormated();
jsonWriteStr_(errorsHeapJson, F("timenow"), dateAndTime);
SerialPrint("I", F("NTP"), "" + dateAndTime);
}
},
nullptr, true);