Делаем int параметр не обязательным при инициализации Item

This commit is contained in:
2022-11-04 17:01:52 +03:00
parent 15da6dd973
commit 04bbcc983a

View File

@@ -7,7 +7,7 @@
//получение параметров в экземпляр класса
IoTItem::IoTItem(const String& parameters) {
jsonRead(parameters, F("int"), _interval);
jsonRead(parameters, F("int"), _interval, false);
if (_interval <= 0) enableDoByInt = false;
_interval = _interval * 1000;
jsonRead(parameters, F("subtype"), _subtype, false);