правельный wifi

This commit is contained in:
Dmitry Borisenko
2022-08-11 15:04:58 +02:00
parent ace3d14261
commit ee38878961
2 changed files with 5 additions and 3 deletions

View File

@@ -3,8 +3,8 @@
"name": "IoTmanagerVer4",
"apssid": "IoTmanager",
"appass": "",
"routerssid": "MercureSpeedZone",
"routerpass": "",
"routerssid": "rise",
"routerpass": "hostel3333",
"timezone": 1,
"ntp": "pool.ntp.org",
"weblogin": "admin",

View File

@@ -5,6 +5,7 @@
#include "ESPConfiguration.h"
#include "EventsAndOrders.h"
//получение параметров в экземпляр класса
IoTItem::IoTItem(String parameters) {
jsonRead(parameters, F("int"), _interval);
if (_interval == 0) enableDoByInt = false;
@@ -52,7 +53,8 @@ String IoTItem::getValue() {
char buf[15];
sprintf(buf, ("%1." + (String)_round + "f").c_str(), value.valD);
return (String)buf;
} else return (String)value.valD;
} else
return (String)value.valD;
else
return value.valS;
}