mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 14:42:18 +03:00
правельный wifi
This commit is contained in:
@@ -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