оптимизация ntp

This commit is contained in:
Dmitry Borisenko
2022-08-18 14:57:58 +02:00
parent b458758a54
commit 6b1265d6b8
2 changed files with 4 additions and 4 deletions

View File

@@ -44,12 +44,12 @@ void setup() {
standWebSocketsInit(); standWebSocketsInit();
#endif #endif
//инициализация mqtt
mqttInit();
// NTP // NTP
ntpInit(); ntpInit();
//инициализация mqtt
mqttInit();
//настраиваем микроконтроллер //настраиваем микроконтроллер
configure("/config.json"); configure("/config.json");

View File

@@ -21,7 +21,7 @@ void ntpInit() {
if (prevTime != timenow) { if (prevTime != timenow) {
prevTime = timenow; prevTime = timenow;
// jsonWriteStr(configLiveJson, "timenow", timenow); // jsonWriteStr(configLiveJson, "timenow", timenow);
SerialPrint("I", F("NTP"), getDateTimeDotFormated()); SerialPrint("I", F("NTP"), getDateTimeDotFormated());
} }
}, },
nullptr, true); nullptr, true);