mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
some
This commit is contained in:
@@ -12,5 +12,5 @@ void clockInit() {
|
||||
timeNow->hasSync();
|
||||
},
|
||||
nullptr, true);
|
||||
SerialPrint("I", F("Time"), F("Clock Init"));
|
||||
SerialPrint("I", F("NTP"), F("Clock Init"));
|
||||
}
|
||||
|
||||
@@ -76,7 +76,9 @@ void sendTelegramMsg() {
|
||||
static String prevMsg;
|
||||
if (prevMsg != msg) {
|
||||
prevMsg = msg;
|
||||
myBot->sendMessage(jsonReadInt(configSetupJson, "chatId"), msg);
|
||||
if (msg != "na") {
|
||||
myBot->sendMessage(jsonReadInt(configSetupJson, "chatId"), msg);
|
||||
}
|
||||
SerialPrint("<-", "Telegram", "chat ID: " + String(jsonReadInt(configSetupJson, "chatId")) + ", msg: " + msg);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -228,8 +228,9 @@ void timeInit() {
|
||||
prevTime = timenow;
|
||||
jsonWriteStr(configLiveJson, "timenow", timenow);
|
||||
eventGen2("timenow", timenow);
|
||||
SerialPrint("I", F("NTP"), timenow);
|
||||
}
|
||||
},
|
||||
nullptr, true);
|
||||
SerialPrint("I", F("Time"), F("Handle time init"));
|
||||
SerialPrint("I", F("NTP"), F("Handle time init"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user