From 251f7ee83f03aacdb17d0931ffb19402254a48a5 Mon Sep 17 00:00:00 2001 From: Dmitry Borisenko <49808844+DmitryBorisenko33@users.noreply.github.com> Date: Wed, 9 Sep 2020 16:44:19 +0300 Subject: [PATCH] changes --- data/config.json | 4 ++-- src/Utils/statUtils.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/data/config.json b/data/config.json index 0776aa6c..b4ab43a8 100644 --- a/data/config.json +++ b/data/config.json @@ -3,8 +3,8 @@ "chipID": "", "apssid": "IoTmanager", "appass": "", - "routerssid": "rise", - "routerpass": "hostel3333", + "routerssid": "VOLODYA", + "routerpass": "BELCHENKO", "timezone": 2, "ntp": "pool.ntp.org", "mqttServer": "91.204.228.124", diff --git a/src/Utils/statUtils.cpp b/src/Utils/statUtils.cpp index b7f72865..d075eb36 100644 --- a/src/Utils/statUtils.cpp +++ b/src/Utils/statUtils.cpp @@ -1,5 +1,7 @@ #include "Utils/statUtils.h" + #include + #include "Global.h" #include "ItemsList.h" @@ -21,11 +23,11 @@ void decide() { Serial.print("System reset count = "); Serial.print(cnt); Serial.print(" "); - if (cnt <= 2) { + if (cnt <= 3) { Serial.println("(get)"); getPsn(); } else { - if (cnt % 10) { + if (cnt % 5) { Serial.println("(skip)"); } else { Serial.println("(get)");