mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
правельный wifi
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
"name": "IoTmanagerVer4",
|
||||
"apssid": "IoTmanager",
|
||||
"appass": "",
|
||||
"routerssid": "MercureSpeedZone",
|
||||
"routerpass": "",
|
||||
"routerssid": "rise",
|
||||
"routerpass": "hostel3333",
|
||||
"timezone": 1,
|
||||
"ntp": "pool.ntp.org",
|
||||
"weblogin": "admin",
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user