исправление виртуальной кнопки

This commit is contained in:
Dmitry Borisenko
2022-08-12 18:09:32 +02:00
parent 027dc16ba1
commit ca95a4528d
3 changed files with 18 additions and 20 deletions

View File

@@ -58,13 +58,13 @@
"num": 4 "num": 4
}, },
{ {
"name": "5. Кнопка", "name": "5. Виртуальная кнопка",
"type": "Reading", "type": "Reading",
"subtype": "VButton", "subtype": "VButton",
"id": "vbtn", "id": "vbtn",
"widget": "button", "widget": "toggle",
"page": "Кнопки", "page": "Кнопки",
"descr": "Кнопка1", "descr": "Кнопка",
"int": "0", "int": "0",
"val": "0", "val": "0",
"num": 5 "num": 5

View File

@@ -68,6 +68,7 @@ void IoTItem::setValue(String valStr) {
setValue(value); setValue(value);
} }
//непонятный метод к удалению
void IoTItem::setValue(IoTValue Value) { void IoTItem::setValue(IoTValue Value) {
value = Value; value = Value;
if (value.isDecimal) { if (value.isDecimal) {

View File

@@ -1,19 +1,18 @@
{ {
"menuSection": "Виртуальные элементы", "menuSection": "Виртуальные элементы",
"configItem": [
"configItem": [{ {
"name": "Кнопка", "name": "Виртуальная кнопка",
"type": "Reading", "type": "Reading",
"subtype": "VButton", "subtype": "VButton",
"id": "vbtn", "id": "vbtn",
"widget": "button", "widget": "toggle",
"page": "Кнопки", "page": "Кнопки",
"descr": "Кнопка1", "descr": "Кнопка",
"int": "0",
"int": "0", "val": "0"
"val": "0" }
}], ],
"about": { "about": {
"authorName": "Ilya Belyakov", "authorName": "Ilya Belyakov",
"authorContact": "https://t.me/Biveraxe", "authorContact": "https://t.me/Biveraxe",
@@ -27,9 +26,7 @@
"val": "Значение при старте" "val": "Значение при старте"
} }
}, },
"defActive": true, "defActive": true,
"devices": { "devices": {
"esp32_4mb": [], "esp32_4mb": [],
"esp8266_4mb": [] "esp8266_4mb": []