diff --git a/data/config.json b/data/config.json index 34c25c56..7aa21254 100644 --- a/data/config.json +++ b/data/config.json @@ -3,8 +3,8 @@ "chipID": "", "apssid": "IoTmanager", "appass": "", - "routerssid": "rise", - "routerpass": "hostel3333", + "routerssid": "VOLODYA", + "routerpass": "BELCHENKO", "timezone": 2, "ntp": "pool.ntp.org", "mqttServer": "91.204.228.124", diff --git a/data/elements.json b/data/elements.json new file mode 100644 index 00000000..70e72031 --- /dev/null +++ b/data/elements.json @@ -0,0 +1,6 @@ +{ + "id1": "id1", + "id2": "id2", + "id3": "id3", + "id4": "id4" +} \ No newline at end of file diff --git a/data/index.json.gz b/data/index.json.gz deleted file mode 100644 index 52c4df62..00000000 Binary files a/data/index.json.gz and /dev/null differ diff --git a/data/setn.device.json b/data/setn.device.json index e494cab8..026beade 100644 --- a/data/setn.device.json +++ b/data/setn.device.json @@ -57,6 +57,13 @@ "title": "Удалить все", "action": "/set?cleanconf", "class": "btn btn-block btn-default" + }, + { + "type": "select", + "name": "id-arg", + "action": "/set?id=[[id-arg]]", + "state": "en", + "title": "elements.json" } ] } \ No newline at end of file diff --git a/src/DeviceList.cpp b/src/DeviceList.cpp index 68b05d3d..56e6d4b5 100644 --- a/src/DeviceList.cpp +++ b/src/DeviceList.cpp @@ -30,6 +30,8 @@ int getNewElementNumber(String file) { return number; } + + void do_delElement() { if (delElementFlag) { delElementFlag = false;