diff --git a/src/App.svelte b/src/App.svelte index 22e151a..307319c 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -153,6 +153,12 @@ { name: "Устройство 1", id: "987654321", + ip: "192.168.88.233", + status: false, + }, + { + name: "Устройство 2", + id: "987654321", ip: "192.168.88.235", status: false, }, @@ -483,7 +489,9 @@ function pushConfigToEsp() { //config.forEach((element) => { - wsSendMsg(wsSelected, JSON.stringify(config)); + wsSendMsg(wsSelected, "/changed" + JSON.stringify(config)); + clearData(); + sendCurrentPageName(); //}); } @@ -582,16 +590,14 @@ Тип Подтип Id - 4 {#each config as element} {element.type} - {element.subtype} - {element.id} - 4 + + {/each}