mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 03:49:13 +03:00
правельный wifi
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
"name": "IoTmanagerVer4",
|
"name": "IoTmanagerVer4",
|
||||||
"apssid": "IoTmanager",
|
"apssid": "IoTmanager",
|
||||||
"appass": "",
|
"appass": "",
|
||||||
"routerssid": "MercureSpeedZone",
|
"routerssid": "rise",
|
||||||
"routerpass": "",
|
"routerpass": "hostel3333",
|
||||||
"timezone": 1,
|
"timezone": 1,
|
||||||
"ntp": "pool.ntp.org",
|
"ntp": "pool.ntp.org",
|
||||||
"weblogin": "admin",
|
"weblogin": "admin",
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
#include "ESPConfiguration.h"
|
#include "ESPConfiguration.h"
|
||||||
#include "EventsAndOrders.h"
|
#include "EventsAndOrders.h"
|
||||||
|
|
||||||
|
//получение параметров в экземпляр класса
|
||||||
IoTItem::IoTItem(String parameters) {
|
IoTItem::IoTItem(String parameters) {
|
||||||
jsonRead(parameters, F("int"), _interval);
|
jsonRead(parameters, F("int"), _interval);
|
||||||
if (_interval == 0) enableDoByInt = false;
|
if (_interval == 0) enableDoByInt = false;
|
||||||
@@ -52,7 +53,8 @@ String IoTItem::getValue() {
|
|||||||
char buf[15];
|
char buf[15];
|
||||||
sprintf(buf, ("%1." + (String)_round + "f").c_str(), value.valD);
|
sprintf(buf, ("%1." + (String)_round + "f").c_str(), value.valD);
|
||||||
return (String)buf;
|
return (String)buf;
|
||||||
} else return (String)value.valD;
|
} else
|
||||||
|
return (String)value.valD;
|
||||||
else
|
else
|
||||||
return value.valS;
|
return value.valS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user